diff options
author | 2018-03-01 06:35:52 -0800 | |
---|---|---|
committer | 2018-03-01 06:37:50 -0800 | |
commit | 08b66c78919bbaa947af30c1c987971c45ac2bcd (patch) | |
tree | c588af494c751fb98f4b66dc28fad814f8d3ac3f /src/test/shell | |
parent | 7176235094021aaf294994486e2f6ddbd0a54c74 (diff) |
bazel_workspace_status_test: don't assume order
The test_errmsg test tested the behaviour when workspace_status_command
was set to a file that did not exist, but other tests created a file
with that name. If test_errmsg did not run first, the
workspace_status_command would be valid and the test would fail.
Closes #4704.
PiperOrigin-RevId: 187470549
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/bazel/bazel_workspace_status_test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/shell/bazel/bazel_workspace_status_test.sh b/src/test/shell/bazel/bazel_workspace_status_test.sh index 79796b4dab..9d589efc08 100755 --- a/src/test/shell/bazel/bazel_workspace_status_test.sh +++ b/src/test/shell/bazel/bazel_workspace_status_test.sh @@ -127,9 +127,9 @@ genrule( ) EOF - bazel build --workspace_status_command=$TEST_TMPDIR/wsc.sh --stamp //:a &> $TEST_log \ + bazel build --workspace_status_command=$TEST_TMPDIR/wscmissing.sh --stamp //:a &> $TEST_log \ && fail "build succeeded" - expect_log "wsc.sh: No such file or directory\|wsc.sh: not found" + expect_log "wscmissing.sh: No such file or directory\|wscmissing.sh: not found" } |