From 2d9a9d439d1508b577db7e13fb56a812bba176e9 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Tue, 3 May 2022 19:35:24 +0200 Subject: [PATCH] _scripts/test_linux.sh,_scripts/test_windows.ps1: always return exit code 0 when testing on tip (#2997) Same as what we do for test_mac.sh --- _scripts/test_linux.sh | 8 ++++++++ _scripts/test_windows.ps1 | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/_scripts/test_linux.sh b/_scripts/test_linux.sh index c37bae05..56297de2 100755 --- a/_scripts/test_linux.sh +++ b/_scripts/test_linux.sh @@ -57,4 +57,12 @@ elif [ ${version:4:2} -gt 17 ]; then export GOFLAGS=-buildvcs=false fi +set +e make test +x=$? +if [ "$version" = "gotip" ]; then + exit 0 +else + exit $x +fi + diff --git a/_scripts/test_windows.ps1 b/_scripts/test_windows.ps1 index 65b56fff..ea807199 100644 --- a/_scripts/test_windows.ps1 +++ b/_scripts/test_windows.ps1 @@ -73,4 +73,7 @@ Write-Host $env:GOPATH go version go env go run _scripts/make.go test -Exit $LastExitCode +x = $LastExitCode +if ($version -ne "gotip") { + Exit $x +}