From 56d5f1588a8737ea13139342a952060f8977bc5c Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 21 Jan 2020 00:27:28 +0100 Subject: [PATCH] Do not run `.pipe` tests if the normal variant fails They'll most likely fail as well, just adding redundant error output --- test/asm/test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/asm/test.sh b/test/asm/test.sh index 36f5b05a..5dcfff73 100755 --- a/test/asm/test.sh +++ b/test/asm/test.sh @@ -38,9 +38,9 @@ for i in *.asm; do fi diff -u --strip-trailing-cr $desired_output $output - rc=$(($? || $rc)) + our_rc=$? diff -u --strip-trailing-cr $desired_errput $errput - rc=$(($? || $rc)) + our_rc=$(($? || $our_rc)) bin=${i%.asm}.out.bin if [ -f $bin ]; then @@ -49,8 +49,11 @@ for i in *.asm; do hexdump -C $output > $input && mv $input $output hexdump -C $bin > $input diff -u --strip-trailing-cr $input $output - rc=$(($? || $rc)) + our_rc=$(($? || $our_rc)) fi + + rc=$(($rc || $our_rc)) + if [ $our_rc -ne 0 ]; then break; fi done done