From c30b004475b8be11ef3b7c7fba278b7fcd5435b9 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Mon, 2 Sep 2019 19:35:08 -0400 Subject: [PATCH] fix test script --- tonic-interop/test.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tonic-interop/test.sh b/tonic-interop/test.sh index 484a9ea..58d00cd 100755 --- a/tonic-interop/test.sh +++ b/tonic-interop/test.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash + + set -eu set -o pipefail @@ -9,10 +11,11 @@ case "$OSTYPE" in *) exit 2 ;; esac +ARG="${1:-""}" SERVER="tonic-interop/bin/server_${OS}_amd64" # run the test server -./"${SERVER}" $1 & +./"${SERVER}" $ARG & SERVER_PID=$! echo ":; started grpc-go test server." @@ -23,4 +26,4 @@ trap 'echo ":; killing test server"; kill ${SERVER_PID};' EXIT cargo run -p tonic-interop --bin client -- \ --test_case=empty_unary,large_unary,client_streaming,server_streaming,ping_pong,\ empty_stream,status_code_and_message,special_status_message,unimplemented_method,\ -unimplemented_service,custom_metadata $1 +unimplemented_service,custom_metadata $ARG