Skip to content

Commit bafdc06

Browse files
rozzanhachicha
andauthored
Fix run-tests.sh (#1821)
As the output of gradlew is piped to tee, the return value is lost. This can be fixed by using pipefail which sets the return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero status JAVA-5983 --------- Co-authored-by: Nabil Hachicha <nabil.hachicha@gmail.com>
1 parent 0d34dfa commit bafdc06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.evergreen/run-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -o xtrace # Write all commands first to stderr
44
set -o errexit # Exit the script with error if any of the commands fail
5+
set -o pipefail # Exit if any command in a pipe fails
56

67
# Supported/used environment variables:
78
# AUTH Set to enable authentication. Values are: "auth" / "noauth" (default)

0 commit comments

Comments
 (0)