aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar philwo <philwo@google.com>2017-08-16 12:03:08 +0200
committerGravatar Irina Iancu <elenairina@google.com>2017-08-17 09:51:54 +0200
commit50c10141c63d6327b7acf565b98420eee3f7fea4 (patch)
tree249a6dd39c326163cd67718b3a3269ba358208f3 /src/test
parent7b233c4604dc08ca4ca90eab59083a472f97a502 (diff)
When a worker can no longer be used, because one or more of its files on disk have changed since it was launched, print *which* files have changed.
RELNOTES: Improved logging when workers have to be restarted due to its files having changed. PiperOrigin-RevId: 165419664
Diffstat (limited to 'src/test')
-rwxr-xr-xsrc/test/shell/integration/bazel_worker_test.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/shell/integration/bazel_worker_test.sh b/src/test/shell/integration/bazel_worker_test.sh
index 4eadbefb95..af7c7d5166 100755
--- a/src/test/shell/integration/bazel_worker_test.sh
+++ b/src/test/shell/integration/bazel_worker_test.sh
@@ -288,6 +288,7 @@ EOF
assert_equals "1" $work_count
expect_log "worker .* can no longer be used, because its files have changed on disk"
+ expect_log "worker_lib.jar: .* -> .*"
# Check that we used a new worker.
assert_not_equals "$worker_uuid_2" "$worker_uuid_3"
@@ -328,6 +329,7 @@ EOF
assert_equals "1" $work_count
expect_log "worker .* can no longer be used, because its files have changed on disk"
+ expect_log "worker_data.txt: edcca2268a017586e6b62a8d572b1b72 -> 594038395d71f98c79c00405e0f0eba8"
# Check that we used a new worker.
assert_not_equals "$worker_uuid_2" "$worker_uuid_3"