autotest: Clear traps right before entering autotest_cleanup
Currently, autotest_cleanup()'s failure causes the EXIT trap to run it again. This step is not necessary, so clear the traps prior running it. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I8f841186bf9e9c0e82c8afc409129acad393efe8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15154 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
parent
0252bdbf60
commit
405d338f74
@ -353,6 +353,8 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
trap - SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
timing_enter cleanup
|
timing_enter cleanup
|
||||||
autotest_cleanup
|
autotest_cleanup
|
||||||
timing_exit cleanup
|
timing_exit cleanup
|
||||||
@ -360,8 +362,6 @@ timing_exit cleanup
|
|||||||
timing_exit autotest
|
timing_exit autotest
|
||||||
chmod a+r $output_dir/timing.txt
|
chmod a+r $output_dir/timing.txt
|
||||||
|
|
||||||
trap - SIGINT SIGTERM EXIT
|
|
||||||
|
|
||||||
[[ -f "$output_dir/udev.log" ]] && rm -f "$output_dir/udev.log"
|
[[ -f "$output_dir/udev.log" ]] && rm -f "$output_dir/udev.log"
|
||||||
|
|
||||||
if hash lcov && ! [[ "$CC_TYPE" == *"clang"* ]]; then
|
if hash lcov && ! [[ "$CC_TYPE" == *"clang"* ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user