From: Ian Jackson Date: Fri, 13 Aug 2021 23:18:52 +0000 (+0100) Subject: test scripts: arg handling X-Git-Tag: hippotat/1.0.0~185 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=c73512e8efc2da99517ad0688178f8a4261e10b8;hp=ce8a293dcf93f43a64c1d7750bd3aac1be1c81f4;p=hippotat.git test scripts: arg handling Signed-off-by: Ian Jackson --- diff --git a/test/run-client b/test/run-client index c545d66..8844200 100755 --- a/test/run-client +++ b/test/run-client @@ -4,7 +4,7 @@ # There is NO WARRANTY. set -e -slug=$1 +slug=$1; if [ $# -gt 0 ]; then shift; fi ip netns exec hippotat-t-$slug-client \ -target/debug/hippotat --config src/test/test.cfg --debug +target/debug/hippotat --config src/test/test.cfg --debug "$@" diff --git a/test/run-server b/test/run-server index 6e5a653..04dc553 100755 --- a/test/run-server +++ b/test/run-server @@ -4,7 +4,7 @@ # There is NO WARRANTY. set -e -slug=$1 +slug=$1; if [ $# -gt 0 ]; then shift; fi ip netns exec hippotat-t-$slug-server \ -target/debug/hippotatd --config src/test/test.cfg --debug +target/debug/hippotatd --config src/test/test.cfg --debug "$@"