Commit 06084c8b authored by Michal Berger's avatar Michal Berger Committed by Konrad Sztyber
Browse files

autotest: Make sure cleanup timings have unique names



Otherwise it messes up with the time accounting of the last test block
marked with the same name.

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


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 624133b5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ if hash lcov && ! [[ "$CC_TYPE" == *"clang"* ]]; then
fi

# Make sure the disks are clean (no leftover partition tables)
timing_enter cleanup
timing_enter pre_cleanup
# Remove old domain socket pathname just in case
rm -f /var/tmp/spdk*.sock

@@ -129,7 +129,7 @@ if [[ $(uname -s) == Linux ]]; then
	nvme_namespace_revert
fi

timing_exit cleanup
timing_exit pre_cleanup

# set up huge pages
timing_enter afterboot
@@ -360,9 +360,9 @@ fi

trap - SIGINT SIGTERM EXIT

timing_enter cleanup
timing_enter post_cleanup
autotest_cleanup
timing_exit cleanup
timing_exit post_cleanup

timing_exit autotest
chmod a+r $output_dir/timing.txt