From 6494eeb9aa03d37ebe3a00a0756db2c4c9d6a065 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 12 May 2022 15:34:46 -0400 Subject: tests: Exit immediately if fail() detects a crash --- tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.sh b/tests.sh index c7567bc..68b3a36 100755 --- a/tests.sh +++ b/tests.sh @@ -1118,8 +1118,8 @@ function fail() { local STATUS="$?" if ((STATUS > 125)); then - return "$STATUS" - elif ((STATUS)); then + exit "$STATUS" + elif ((STATUS > 0)); then return 0 else return 1 -- cgit v1.2.3