From: Ian Jackson Date: Sun, 15 Aug 2021 20:22:36 +0000 (+0100) Subject: test: run-*: allow overriding the command X-Git-Tag: hippotat/1.0.0~166 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=cdb5a837c8c7eb85c34fbfe3d2de145b409cafa4 test: run-*: allow overriding the command Signed-off-by: Ian Jackson --- diff --git a/test/run-client b/test/run-client index 8844200..9b20eb7 100755 --- a/test/run-client +++ b/test/run-client @@ -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 "$@" + diff --git a/test/run-server b/test/run-server index 04dc553..8b99b83 100755 --- a/test/run-server +++ b/test/run-server @@ -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 "$@" +