aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/client_test.sh
diff options
context:
space:
mode:
authorGravatar philwo <philwo@google.com>2018-02-01 09:07:39 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-01 09:09:05 -0800
commita7831cc0aa606a312bd4f6f8a7e3a4c83f6dcbd4 (patch)
treed800c2be44a6aec762842adbea4bd1a107726c37 /src/test/shell/bazel/client_test.sh
parent875068a65663c63f9d3110ae197a43d89561ae19 (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-xsrc/test/shell/bazel/client_test.sh11
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
+}