]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix variable name error in the xfer system test
authorAram Sargsyan <aram@isc.org>
Mon, 17 Apr 2023 15:56:37 +0000 (15:56 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Tue, 18 Apr 2023 09:37:39 +0000 (09:37 +0000)
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.

bin/tests/system/xfer/tests.sh

index fd0e5ff4957a9028e96decefe7141fa6c909457e..25cb9857d6721bc5b824f96d5b043e2272e15c43 100755 (executable)
@@ -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))