]> granicus.if.org Git - pdns/commitdiff
fix RETVAL for 'both' tests
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 19 Nov 2013 12:01:03 +0000 (13:01 +0100)
committermind04 <mind04@monshouwer.org>
Tue, 19 Nov 2013 12:01:29 +0000 (13:01 +0100)
don't overwrite first RETVAL in second run

regression-tests/start-test-stop

index 76d87f80a7cf94f50743aed7afb731bd8a65a84e..f54e937f5b0025bef0cee5e7d9a411e075b6a343 100755 (executable)
@@ -1197,7 +1197,10 @@ dotests () {
                        echo -e "\n\n$t"
                        cat $t/diff
                done
-               eval "$1=1"
+               if [ "${!1}" -eq 0 ]
+               then
+                       eval "$1=1"
+               fi
        fi
 }
 
@@ -1213,6 +1216,7 @@ export skipreasons
 export testsdir
 export optout
 
+sleep 2
 
 if [ $presigned = no ] || [ $both = yes ]
 then