Skip to content

Commit

Permalink
Remove unnecessary expunge's from test.
Browse files Browse the repository at this point in the history
Closes bazelbuild#18211.

PiperOrigin-RevId: 527485079
Change-Id: I11ac0900ff89a9a41b31cf1f2d226c5962650813
  • Loading branch information
meisterT authored and copybara-github committed Apr 27, 2023
1 parent e8cedf4 commit 72212f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/shell/integration/build_event_stream_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ function test_test_runtime() {
function test_test_start_times() {
# Verify that the start time of a test is reported, regardless whether
# it was cached or not.
bazel clean --expunge
bazel clean
bazel test --build_event_text_file=$TEST_log pkg:true \
|| fail "bazel test failed"
expect_log 'test_attempt_start_millis_epoch.*[1-9]'
Expand Down Expand Up @@ -617,7 +617,7 @@ function test_test_attempts_multi_runs_flake_detection() {
function test_cached_test_results() {
# Verify that both, clean and cached test results are reported correctly,
# including the appropriate reference to log files.
bazel clean --expunge
bazel clean
bazel test --build_event_text_file=$TEST_log pkg:true \
|| fail "Clean testing pkg:true failed"
expect_log '^test_result'
Expand Down Expand Up @@ -1077,7 +1077,7 @@ function test_stdout_stderr_reported() {
# Verify that bazel's stdout/stderr is included in the build event stream.

# Make sure we generate enough output on stderr
bazel clean --expunge
bazel clean
bazel test --build_event_text_file=$TEST_log --curses=no \
pkg:slow 2>stderr.log || fail "slowtest failed"
# Take a line that is likely not the output of an action (possibly reported
Expand All @@ -1092,7 +1092,7 @@ function test_stdout_stderr_reported() {
function test_unbuffered_stdout_stderr() {
# Verify that the option --bes_outerr_buffer_size ensures that messages are
# flushed out to the BEP immediately
bazel clean --expunge
bazel clean
bazel build --build_event_text_file="${TEST_log}" \
--bes_outerr_buffer_size=1 chain:entry10
progress_count=$(grep '^progress' "${TEST_log}" | wc -l )
Expand Down

0 comments on commit 72212f2

Please sign in to comment.