scripts/setup: Always cleanup target directories
Currently, in case target directories are empty the directories themselves are not being purged. Change that, as there is no need to keep them around. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: Ia1a9d60a91508e74b7e106e0217414a8927029b6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15153 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
parent
cb8174dc4a
commit
0252bdbf60
@ -425,10 +425,6 @@ function cleanup_linux() {
|
||||
|
||||
files_to_clean+=(/dev/shm/@(@($match_spdk)_trace|spdk_iscsi_conns))
|
||||
files_to_clean+=("${file_locks[@]}")
|
||||
if ((${#files_to_clean[@]} == 0)); then
|
||||
echo "Clean"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# This may fail in case path that readlink attempts to resolve suddenly
|
||||
# disappears (as it may happen with terminating processes).
|
||||
|
Loading…
Reference in New Issue
Block a user