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: Michal Berger <michal.berger@intel.com> Change-Id: I6baabc4166b78c27b3b504a6674005f0dd4a3da3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17146 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
624133b5c0
commit
06084c8b7e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user