Commit 0252bdbf authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

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: default avatarMichal Berger <michal.berger@intel.com>
Change-Id: Ia1a9d60a91508e74b7e106e0217414a8927029b6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15153


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent cb8174dc
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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).