]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Exit test-network with status of chutney verify
authorteor <teor2345@gmail.com>
Sat, 4 Oct 2014 22:59:27 +0000 (09:59 +1100)
committerteor <teor2345@gmail.com>
Sat, 4 Oct 2014 22:59:27 +0000 (09:59 +1100)
Preserve previous semantics of src/test/test-network.sh by exiting with
the exit status of chutney verify, even though the latest version ends
with chutney stop.

src/test/test-network.sh

index d7fdb3533b72cafdc4186469a3711b4c237d049b..fb33842f3218eb0aa85a7bcdee43ef20ea502aec 100755 (executable)
@@ -45,6 +45,8 @@ n=$BOOTSTRAP_TIME; while [ $n -gt 0 ]; do
     sleep 1; n=$(expr $n - 1); echo -n .
 done; echo ""
 ./chutney verify $CHUTNEY_NETWORK
+VERIFY_EXIT_STATUS=$?
 # work around a bug/feature in make -j2 (or more)
 # where make hangs if any child processes are still alive
 ./chutney stop $CHUTNEY_NETWORK
+exit $VERIFY_EXIT_STATUS