From cdb5a837c8c7eb85c34fbfe3d2de145b409cafa4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 15 Aug 2021 21:22:36 +0100 Subject: [PATCH 1/1] test: run-*: allow overriding the command Signed-off-by: Ian Jackson --- test/run-client | 10 ++++++++-- test/run-server | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) 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 "$@" + -- 2.30.2