chiark / gitweb /
test: run-*: allow overriding the command
[hippotat.git] / test / run-client
index c545d66373a5035bff828bf35eb0bc2058f36e58..9b20eb7c96db5fd41da02fd9af8b110f2c3fb6cc 100755 (executable)
@@ -4,7 +4,13 @@
 # There is NO WARRANTY.
 
 set -e
-slug=$1
+slug=$1; if [ $# -gt 0 ]; then shift; fi
+
+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 "$@"
 
-ip netns exec hippotat-t-$slug-client \
-target/debug/hippotat --config src/test/test.cfg --debug