chiark / gitweb /
test: run-*: allow overriding the command
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 15 Aug 2021 20:22:36 +0000 (21:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 15 Aug 2021 20:22:36 +0000 (21:22 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test/run-client
test/run-server

index 8844200c19ffdd3dd4fa6b8da5f74092da5e80ee..9b20eb7c96db5fd41da02fd9af8b110f2c3fb6cc 100755 (executable)
@@ -6,5 +6,11 @@
 set -e
 slug=$1; if [ $# -gt 0 ]; then shift; fi
 
 set -e
 slug=$1; if [ $# -gt 0 ]; then shift; fi
 
-ip netns exec hippotat-t-$slug-client \
-target/debug/hippotat --config src/test/test.cfg --debug "$@"
+if [ "x$1" = x--- ]; then
+       shift
+else
+       set target/debug/hippotat --config src/test/test.cfg --debug "$@"
+fi
+
+ip netns exec hippotat-t-$slug-client "$@"
+
index 04dc5539051ecfbdfe388f3aeb0fcaef078f2bb3..8b99b838d87bd22efa855cf51cb27127f7c62ff5 100755 (executable)
@@ -6,5 +6,11 @@
 set -e
 slug=$1; if [ $# -gt 0 ]; then shift; fi
 
 set -e
 slug=$1; if [ $# -gt 0 ]; then shift; fi
 
-ip netns exec hippotat-t-$slug-server \
-target/debug/hippotatd --config src/test/test.cfg --debug "$@"
+if [ "x$1" = x--- ]; then
+       shift
+else
+       set target/debug/hippotatd --config src/test/test.cfg --debug "$@"
+fi
+
+ip netns exec hippotat-t-$slug-server "$@"
+