BIND 10 trac1213, updated. ad26a33ce7624ea2a9b8685f1255db0c1f80bfa8 [1213] Use exit, not return
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Oct 14 13:37:32 UTC 2011
The branch, trac1213 has been updated
via ad26a33ce7624ea2a9b8685f1255db0c1f80bfa8 (commit)
from 044381e03b7f178c7c322861960b79c8a27bb4b1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ad26a33ce7624ea2a9b8685f1255db0c1f80bfa8
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Fri Oct 14 15:36:02 2011 +0200
[1213] Use exit, not return
As shell can't return from script, it can only exit.
-----------------------------------------------------------------------
Summary of changes:
tests/system/ixfr/in-2/tests.sh | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/tests/system/ixfr/in-2/tests.sh b/tests/system/ixfr/in-2/tests.sh
index b11df4c..7b1e2a8 100644
--- a/tests/system/ixfr/in-2/tests.sh
+++ b/tests/system/ixfr/in-2/tests.sh
@@ -31,7 +31,7 @@ echo "I:$SERVER_NAME updating IXFR-server to suitable start version"
update_server_zone $SERVER_NAME $SERVER_IP $IXFR_TOP/db.example.n4
if [ $? -ne 0 ];
then
- return 1
+ exit 1
fi
# The pre-requisites for this test are the same as for the common tests, so
@@ -39,7 +39,7 @@ fi
. ../common_tests.sh
if [ $? -ne 0 ];
then
- return 1
+ exit 1
fi
# TEMPORARY: at the time of writing (October 2011) BIND 10 does not attempt
@@ -51,14 +51,14 @@ grep XFRIN_XFR_TRANSFER_STARTED nsx2/bind10.run | grep IXFR > /dev/null
if [ $? -ne 0 ];
then
echo "R:$CLIENT_NAME FAIL no 'IXFR started' message in the BIND 10 log"
- return 1
+ exit 1
fi
grep XFRIN_XFR_TRANSFER_SUCCESS nsx2/bind10.run | grep IXFR > /dev/null
if [ $? -ne 0 ];
then
echo "R:$CLIENT_NAME FAIL no 'IXFR successful' message in the BIND 10 log"
- return 1
+ exit 1
fi
# Look in the named log file to see if a TCP IXFR was requested. Again use a
@@ -67,15 +67,15 @@ grep "transfer of" ns1/named.run | grep "sending TCP message" > /dev/null
if [ $? -ne 0 ];
then
echo "R:$SERVER_NAME FAIL no 'sending TCP' message in the BIND 9 log"
- return 1
+ exit 1
fi
grep "IXFR ended" ns1/named.run > /dev/null
if [ $? -ne 0 ];
then
echo "R:$SERVER_NAME FAIL no 'IXFR ended' message in the BIND 9 log"
- return 1
+ exit 1
fi
echo "I:exit status: 0"
-return 0
+exit 0
More information about the bind10-changes
mailing list