From b180a0e78bd81376491ea2a9ac6349e25f7e52d4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 13 May 2022 16:08:48 -0400 Subject: tests: New --stop flag to stop after the first failure --- tests.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests.sh b/tests.sh index af45466..52507a0 100755 --- a/tests.sh +++ b/tests.sh @@ -82,7 +82,7 @@ function usage() { local pad=$(printf "%*s" ${#0} "") cat <&2 printf "${BOL}${RED}%s failed!${RST}\n" "$test" + [ "$STOP" ] && break fi done -- cgit v1.2.3