From 36abd15195775c64e92171b9dfb4014487cc4f9e Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Fri, 22 Dec 2017 10:37:40 -0800 Subject: [PATCH 1/2] Redirect stderr of xcodebuild --- src/objective-c/tests/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objective-c/tests/run_tests.sh b/src/objective-c/tests/run_tests.sh index 1c34bd8f483..9280ee20146 100755 --- a/src/objective-c/tests/run_tests.sh +++ b/src/objective-c/tests/run_tests.sh @@ -57,7 +57,7 @@ while [ $retries -lt 3 ]; do HOST_PORT_LOCALSSL=localhost:5051 \ HOST_PORT_LOCAL=localhost:5050 \ HOST_PORT_REMOTE=grpc-test.sandbox.googleapis.com \ - test \ + test 2>&1 \ | egrep -v "$XCODEBUILD_FILTER" \ | egrep -v '^$' \ | egrep -v "(GPBDictionary|GPBArray)" - ) || return_code=$? From 3d44fc3c16b53914c08e26cf1e8ee66d88def1e5 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Fri, 22 Dec 2017 10:58:38 -0800 Subject: [PATCH 2/2] print output when the first test succeeded --- src/objective-c/tests/run_tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/objective-c/tests/run_tests.sh b/src/objective-c/tests/run_tests.sh index 9280ee20146..cec34787cf5 100755 --- a/src/objective-c/tests/run_tests.sh +++ b/src/objective-c/tests/run_tests.sh @@ -66,6 +66,7 @@ while [ $retries -lt 3 ]; do echo "Failed with code 65 (DTXProxyChannel error 1); retry." retries=$(($retries+1)) elif [ $return_code == 0 ]; then + echo "$out" break else echo "$out"