diff options
author | 2017-07-21 20:33:28 +0200 | |
---|---|---|
committer | 2017-07-24 09:51:15 +0200 | |
commit | f062c71fe31a814fd7f794260d2d30b4575bbade (patch) | |
tree | 23ab11d0735d52da6a7481ae25b95caad02019da /src/test/shell | |
parent | 92cd50ebc7579cec7760fe6515e680a31064b6ed (diff) |
Write directly to stdout when debugging in test: otherwise test log can get overwritten, losing info (http://ci.bazel.io/job/bazel-tests/899/BAZEL_VERSION=latest,PLATFORM_NAME=ubuntu_16.04-x86_64/consoleFull).
PiperOrigin-RevId: 162764897
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/integration/discard_graph_edges_test.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/shell/integration/discard_graph_edges_test.sh b/src/test/shell/integration/discard_graph_edges_test.sh index 141da3ed8f..607a6f81b8 100755 --- a/src/test/shell/integration/discard_graph_edges_test.sh +++ b/src/test/shell/integration/discard_graph_edges_test.sh @@ -160,10 +160,13 @@ EOF histo_file="$(bazel info "${PRODUCT_NAME}-genfiles" \ 2> /dev/null)/histodump/histo.txt" bazel clean >& "$TEST_log" || fail "Couldn't clean" - bazel $STARTUP_FLAGS build $build_args //histodump:histodump >& "$TEST_log" & + bazel $STARTUP_FLAGS build --show_timestamps $build_args \ + //histodump:histodump >> "$TEST_log" 2>&1 & server_pid=$! echo "server_pid in main thread is ${server_pid}" >> "$TEST_log" echo "$server_pid" > "$server_pid_fifo" + echo "Finished writing pid to fifo at " >> "$TEST_log" + date >> "$TEST_log" # Wait for previous command to finish. wait "$server_pid" || fail "Bazel command failed" cat "$histo_file" >> "$TEST_log" |