chiark / gitweb /
test scripts: arg handling
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 13 Aug 2021 23:18:52 +0000 (00:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 15 Aug 2021 13:36:13 +0000 (14:36 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test/run-client
test/run-server

index c545d66373a5035bff828bf35eb0bc2058f36e58..8844200c19ffdd3dd4fa6b8da5f74092da5e80ee 100755 (executable)
@@ -4,7 +4,7 @@
 # There is NO WARRANTY.
 
 set -e
-slug=$1
+slug=$1; if [ $# -gt 0 ]; then shift; fi
 
 ip netns exec hippotat-t-$slug-client \
-target/debug/hippotat --config src/test/test.cfg --debug
+target/debug/hippotat --config src/test/test.cfg --debug "$@"
index 6e5a653dd8c1a8f22e4db96589050fc7e4ea0735..04dc5539051ecfbdfe388f3aeb0fcaef078f2bb3 100755 (executable)
@@ -4,7 +4,7 @@
 # There is NO WARRANTY.
 
 set -e
-slug=$1
+slug=$1; if [ $# -gt 0 ]; then shift; fi
 
 ip netns exec hippotat-t-$slug-server \
-target/debug/hippotatd --config src/test/test.cfg --debug
+target/debug/hippotatd --config src/test/test.cfg --debug "$@"