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:
Michal Berger 2022-10-27 00:05:10 +02:00 committed by Tomasz Zawadzki
parent cb8174dc4a
commit 0252bdbf60

View File

@ -425,10 +425,6 @@ function cleanup_linux() {
files_to_clean+=(/dev/shm/@(@($match_spdk)_trace|spdk_iscsi_conns)) files_to_clean+=(/dev/shm/@(@($match_spdk)_trace|spdk_iscsi_conns))
files_to_clean+=("${file_locks[@]}") 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 # This may fail in case path that readlink attempts to resolve suddenly
# disappears (as it may happen with terminating processes). # disappears (as it may happen with terminating processes).