Commit 6733330c authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

test/common: nullglob the tmp storage path pattern



This is to avoid including non-matching pattern as an actual item.

Change-Id: Ie4fbb27e66efa1f56618959bb7db6f0fccfc2847
Signed-off-by: default avatarMichal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3290


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 49473bdc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -240,7 +240,9 @@ function set_test_storage() {
	local storage_fallback storage_candidates
	local storage_fallback_purge

	shopt -s nullglob
	storage_fallback_purge=("${TMPDIR:-/tmp}/spdk."??????)
	shopt -u nullglob

	if ((${#storage_fallback_purge[@]} > 0)); then
		printf '* Purging old temporary test storage (%s)\n' \