diff options
author | 2018-02-01 09:07:39 -0800 | |
---|---|---|
committer | 2018-02-01 09:09:05 -0800 | |
commit | a7831cc0aa606a312bd4f6f8a7e3a4c83f6dcbd4 (patch) | |
tree | d800c2be44a6aec762842adbea4bd1a107726c37 /src/test/shell/bazel/client_test.sh | |
parent | 875068a65663c63f9d3110ae197a43d89561ae19 (diff) |
Use the workspace name in the process title of the Bazel server.
This makes way more sense than using the name of the *parent* directory of the workspace.
Closes #4253 - thanks @akira-baruah for suggesting this change and making it happen!
PiperOrigin-RevId: 184147456
Diffstat (limited to 'src/test/shell/bazel/client_test.sh')
-rwxr-xr-x | src/test/shell/bazel/client_test.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/shell/bazel/client_test.sh b/src/test/shell/bazel/client_test.sh index c04acbbdd9..dd67dc487c 100755 --- a/src/test/shell/bazel/client_test.sh +++ b/src/test/shell/bazel/client_test.sh @@ -33,3 +33,14 @@ EOF expect_log "^output_path:.*/execroot/blerp/bazel-out\$" expect_log "^execution_root:.*/execroot/blerp\$" } + +# This test is for Bazel only and not for Google's internal version (Blaze), +# because Bazel uses a different way to compute the workspace name. +function test_server_process_name_has_workspace_name() { + mkdir foobarspace + cd foobarspace + touch WORKSPACE BUILD + ps -o cmd= "$(bazel info server_pid)" &>"$TEST_log" + expect_log "^bazel(foobarspace)" + bazel shutdown +} |