From 8106e20726fd247bfe4eb4203d992f312bbcadb6 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Tue, 7 Sep 2021 13:27:52 +0200 Subject: [PATCH] autotest.sh: remove udev.log if tests successful Remove udev.log just before exiting from autotest.sh. This file probably won't be useful in case all functional tests passed and leaving it unnecesarily bloats the output directory. Change-Id: I1c019a09ed573a0423e085ce96919162efec80a6 Signed-off-by: Karol Latecki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9413 Reviewed-by: Michal Berger Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Reviewed-by: Maciej Wawryk Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI --- autotest.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autotest.sh b/autotest.sh index 0efe738dd..f58cace5c 100755 --- a/autotest.sh +++ b/autotest.sh @@ -357,6 +357,8 @@ trap - SIGINT SIGTERM EXIT # catch any stray core files process_core +[[ -f "$output_dir/udev.log" ]] && rm -f "$output_dir/udev.log" + if hash lcov && ! [[ "$CC_TYPE" == *"clang"* ]]; then # generate coverage data and combine with baseline $LCOV -q -c -d $src -t "$(hostname)" -o $out/cov_test.info