_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
This commit is contained in:
Alessandro Arzilli 2022-05-03 19:35:24 +02:00 committed by GitHub
parent 9d269791d5
commit 2d9a9d439d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

@ -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

@ -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
}