From: Aram Sargsyan Date: Mon, 17 Apr 2023 15:56:37 +0000 (+0000) Subject: Fix variable name error in the xfer system test X-Git-Tag: v9.19.13~28^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=613a9fc659eaabf0e0736ae65e2cbb0d514deb19;p=thirdparty%2Fbind9.git Fix variable name error in the xfer system test There is no 'ret' in this test, and it is obvious that 'ret=1' should be 'tmp=1' for the check to work correctly, if the string is not found in the log file. --- diff --git a/bin/tests/system/xfer/tests.sh b/bin/tests/system/xfer/tests.sh index fd0e5ff4957..25cb9857d67 100755 --- a/bin/tests/system/xfer/tests.sh +++ b/bin/tests/system/xfer/tests.sh @@ -576,7 +576,7 @@ status=$((status+tmp)) n=$((n+1)) echo_i "test that transfer-source uses port option correctly ($n)" tmp=0 -grep "10.53.0.3#${EXTRAPORT1} (primary): query 'primary/SOA/IN' approved" ns6/named.run > /dev/null || ret=1 +grep "10.53.0.3#${EXTRAPORT1} (primary): query 'primary/SOA/IN' approved" ns6/named.run > /dev/null || tmp=1 if test $tmp != 0 ; then echo_i "failed"; fi status=$((status+tmp))