Browse Source

[1213] Correct status return codes in case of error

Stephen Morris 13 years ago
parent
commit
f2b5473fc2
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/system/ixfr/in-2/tests.sh

+ 4 - 4
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 $status
+    return 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 $status
+    return 1
 fi
 
 # TEMPORARY: at the time of writing (October 2011) BIND 10 does not attempt
@@ -77,5 +77,5 @@ then
     return 1
 fi
 
-echo "I:exit status: $status"
-exit $status
+echo "I:exit status: 0"
+return 0