From f3310e1731ab5b69ccd9dd4f307ff8ac2daafe3a Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Mon, 19 Jun 2023 16:24:49 +0200 Subject: [PATCH] Handle non-zero return codes unknown test --- bin/tests/system/unknown/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/unknown/tests.sh b/bin/tests/system/unknown/tests.sh index 0b57f0f380..f52b50e8e5 100644 --- a/bin/tests/system/unknown/tests.sh +++ b/bin/tests/system/unknown/tests.sh @@ -226,7 +226,7 @@ status=$((status + ret)) n=$((n+1)) echo_i "check that 'TYPE353 \# cat' produces 'not a valid number' ($n)" ret=0 -$CHECKZONE nan.bad zones/nan.bad > check.out 2>&1 +$CHECKZONE nan.bad zones/nan.bad > check.out 2>&1 && ret=1 grep "not a valid number" check.out > /dev/null || ret=1 [ $ret = 0 ] || echo_i "failed" status=$((status + ret))