diff --git a/autotest.sh b/autotest.sh index 4536afa79..d92a0e93b 100755 --- a/autotest.sh +++ b/autotest.sh @@ -353,6 +353,8 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then fi fi +trap - SIGINT SIGTERM EXIT + timing_enter cleanup autotest_cleanup timing_exit cleanup @@ -360,8 +362,6 @@ timing_exit cleanup timing_exit autotest chmod a+r $output_dir/timing.txt -trap - SIGINT SIGTERM EXIT - [[ -f "$output_dir/udev.log" ]] && rm -f "$output_dir/udev.log" if hash lcov && ! [[ "$CC_TYPE" == *"clang"* ]]; then