From 3776dff20f4f736055716b8a561b5c7521f306ea Mon Sep 17 00:00:00 2001 From: Nugine Date: Wed, 23 Sep 2020 01:41:53 +0800 Subject: [PATCH] fix: make assert_failure exit properly (#3415) --- functional-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functional-tests.sh b/functional-tests.sh index d6808582..6f3e010e 100755 --- a/functional-tests.sh +++ b/functional-tests.sh @@ -173,6 +173,10 @@ function assert() else echo "mc: $func_name: $err" fi + + if [ "$rv" -eq 0 ]; then + exit 1 + fi exit "$rv" fi