File tree 1 file changed +4
-1
lines changed
tools/bazel_integration_test
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,20 @@ def main(conf_file):
60
60
bazel_args .insert (0 , bazelBinary )
61
61
bazel_process = Popen (bazel_args , cwd = workdir )
62
62
bazel_process .wait ()
63
+ error = bazel_process .returncode != 0
63
64
64
65
if platform .system () == "Windows" :
65
66
# Cleanup any bazel files
66
67
bazel_process = Popen ([bazelBinary , "clean" ], cwd = workdir )
67
68
bazel_process .wait ()
69
+ error |= bazel_process .returncode != 0
68
70
69
71
# Shutdown the bazel instance to avoid issues cleaning up the workspace
70
72
bazel_process = Popen ([bazelBinary , "shutdown" ], cwd = workdir )
71
73
bazel_process .wait ()
74
+ error |= bazel_process .returncode != 0
72
75
73
- if bazel_process . returncode != 0 :
76
+ if error != 0 :
74
77
# Test failure in Bazel is exit 3
75
78
# https://github.com/bazelbuild/bazel/blob/486206012a664ecb20bdb196a681efc9a9825049/src/main/java/com/google/devtools/build/lib/util/ExitCode.java#L44
76
79
sys .exit (3 )
You can’t perform that action at this time.
0 commit comments