From 05247d365f121e3e3bf05b400a14845f03e207cd Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Mon, 19 Jun 2023 11:03:51 +0200 Subject: [PATCH] Handle non-zero return codes in legacy test (cherry picked from commit 3ce200ead8f3bef6f2259508d82b87339f2c6454) --- bin/tests/system/legacy/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/legacy/tests.sh b/bin/tests/system/legacy/tests.sh index 3660ecdbed..af1167352b 100755 --- a/bin/tests/system/legacy/tests.sh +++ b/bin/tests/system/legacy/tests.sh @@ -175,7 +175,7 @@ ret=0 $DIG $DIGOPTS +edns @10.53.0.5 plain-notcp soa > dig.out.1.test$n || ret=1 grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1 grep "EDNS: version:" dig.out.1.test$n > /dev/null && ret=1 -$DIG $DIGOPTS +edns +tcp @10.53.0.5 plain-notcp soa > dig.out.2.test$n +$DIG $DIGOPTS +edns +tcp @10.53.0.5 plain-notcp soa > dig.out.2.test$n && ret=1 grep "connection refused" dig.out.2.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status + ret))