From 8aba83bf22cdc3d7cf77b97e88f6bd0cc16253aa Mon Sep 17 00:00:00 2001 From: Yanray Wang Date: Mon, 6 Mar 2023 19:37:07 +0800 Subject: [PATCH] compat.sh: return $? in option --list-test-case to handle error case Signed-off-by: Yanray Wang --- tests/compat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compat.sh b/tests/compat.sh index 44c3480102..dff693b80b 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -194,7 +194,7 @@ get_options() { # if you have to modify option, --list-test-case --list-test-case) list_test_case - exit 0 + exit $? ;; --outcome-file) shift; MBEDTLS_TEST_OUTCOME_FILE=$1