From 72212f222e990701ddf43c8248e8f12d9c5085fc Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Wed, 26 Apr 2023 23:21:48 -0700 Subject: [PATCH] Remove unnecessary expunge's from test. Closes #18211. PiperOrigin-RevId: 527485079 Change-Id: I11ac0900ff89a9a41b31cf1f2d226c5962650813 --- src/test/shell/integration/build_event_stream_test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/shell/integration/build_event_stream_test.sh b/src/test/shell/integration/build_event_stream_test.sh index 6352fc8dca4f71..b1574ca6f90d7c 100755 --- a/src/test/shell/integration/build_event_stream_test.sh +++ b/src/test/shell/integration/build_event_stream_test.sh @@ -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]' @@ -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' @@ -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 @@ -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 )