From bfb7181e8d9f3f30b6f1558fe97ecbcccf61ffbb Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Wed, 27 Apr 2022 18:10:23 +0200 Subject: [PATCH] _scripts: always return exit code 0 when testing on tip (#2980) So that we can mute failing tests in TeamCity. --- _scripts/test_mac.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_scripts/test_mac.sh b/_scripts/test_mac.sh index 93af0c1f..72ba4957 100644 --- a/_scripts/test_mac.sh +++ b/_scripts/test_mac.sh @@ -42,4 +42,11 @@ export GOARCH="$ARCH" export PATH="$GOROOT/bin:$PATH" go version +set +e make test +x=$? +if [ "$GOVERSION" = "gotip" ]; then + exit 0 +else + exit $x +fi