]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use bash in src/test/test-network.sh
authorteor <teor2345@gmail.com>
Mon, 27 Feb 2017 05:11:22 +0000 (16:11 +1100)
committerteor <teor2345@gmail.com>
Mon, 27 Feb 2017 15:13:56 +0000 (02:13 +1100)
This ensures we reliably call chutney's newer tools/test-network.sh when
available.

Fixes bug 21562; bugfix on tor-0.2.9.1-alpha.

changes/bug21562 [new file with mode: 0644]
src/test/test-network.sh

diff --git a/changes/bug21562 b/changes/bug21562
new file mode 100644 (file)
index 0000000..48396a0
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (testing):
+    - Use bash in src/test/test-network.sh. This ensures we reliably call
+      chutney's newer tools/test-network.sh when available.
+      Fixes bug 21562; bugfix on tor-0.2.9.1-alpha.
index 2c37b6d826b930144f8f10d85de63d9083f223af..cb10f7232f8ff0b56951435a840167f8b0f3e3bb 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 
 # Please do not modify this script, it has been moved to chutney/tools
 
@@ -178,7 +178,8 @@ export CHUTNEY_NETWORK=networks/$NETWORK_FLAVOUR
 # And finish up if we're doing a dry run
 if [ "$NETWORK_DRY_RUN" = true ]; then
     # we can't exit here, it breaks argument processing
-    return
+    # this only works in bash: return semantics are shell-specific
+    return 2>/dev/null || exit
 fi
 
 cd "$CHUTNEY_PATH"