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: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3290 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
49473bdc81
commit
6733330cf5
@ -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' \
|
||||
|
Loading…
Reference in New Issue
Block a user