From 8651ef29abbc81ab43e1b5668c26a05bf7234321 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Mon, 22 Mar 2021 11:59:30 +0100 Subject: [PATCH] autotest: Make sure entire EXIT trap is executed process_core() indicates error where any core files are found. If that happens to be the case when the trap is called, the remaining pieces won't be executed due to errexit being enabled. With that in mind, simply ignore process_core's exit status. Signed-off-by: Michal Berger Change-Id: I83527468bd1b41bf92b9ee8189a4c425be914552 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6990 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker Reviewed-by: Tomasz Zawadzki --- autotest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotest.sh b/autotest.sh index 1b2f2f6cb6..fccbfcb979 100755 --- a/autotest.sh +++ b/autotest.sh @@ -50,7 +50,7 @@ if [ $(uname -s) = Linux ]; then fi fi -trap "process_core; autotest_cleanup; exit 1" SIGINT SIGTERM EXIT +trap "process_core || :; autotest_cleanup; exit 1" SIGINT SIGTERM EXIT timing_enter autotest