chiark / gitweb /
test: run-*: allow overriding the command
[hippotat.git] / test / run-server
index 04dc5539051ecfbdfe388f3aeb0fcaef078f2bb3..8b99b838d87bd22efa855cf51cb27127f7c62ff5 100755 (executable)
@@ -6,5 +6,11 @@
 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 "$@"
+