Skip to content

Commit

Permalink
Shutdown bazel after every test case.
Browse files Browse the repository at this point in the history
This reduces log spam on Windows, see bazelbuild#12397.
  • Loading branch information
katre committed Nov 2, 2020
1 parent e79e7e8 commit bc068e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/shell/testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,11 @@ function cleanup_workspace() {
}

function testenv_tear_down() {
if [ -d "${WORKSPACE_DIR:-}" ]; then
# Try to shutdown Bazel at the end to prevent log spam.
cd "${WORKSPACE_DIR}"
try_with_timeout bazel shutdown || true
fi
cleanup_workspace
}

Expand Down

0 comments on commit bc068e7

Please sign in to comment.