chiark / gitweb /
test: run-*: allow overriding the command
[hippotat.git] / test / run-client
index 8844200c19ffdd3dd4fa6b8da5f74092da5e80ee..9b20eb7c96db5fd41da02fd9af8b110f2c3fb6cc 100755 (executable)
@@ -6,5 +6,11 @@
 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 "$@"
+