From d7303a2516c3e1dc193335d83dcbe9296d53353c Mon Sep 17 00:00:00 2001 From: Simon Mavi Stewart Date: Wed, 25 Jan 2023 10:52:27 +0000 Subject: [PATCH] Tweak test --- tests/bazel_run_tests.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/bazel_run_tests.sh b/tests/bazel_run_tests.sh index 923055d86..2717213d9 100755 --- a/tests/bazel_run_tests.sh +++ b/tests/bazel_run_tests.sh @@ -7,21 +7,22 @@ function test_docs_are_up_to_date() { before_docs="$(git status)" - bazel run //scripts:generate-docs >> "$TEST_LOG" 2>&1 + bazel run //scripts:generate-docs >> "$TEST_LOG" 2>&1 after_docs="$(git status)" expect_same "$before_docs" "$after_docs" } function test_formatting_is_okay() { - bazel run //scripts:format >> "$TEST_LOG" 2>&1 + before_format="$(git status)" + bazel run //scripts:format >> "$TEST_LOG" 2>&1 after_format="$(git status)" - expect_same "$after_docs" "$after_format" + expect_same "$before_format" "$after_format" } function test_prebuilts_are_up_to_date() { temp=$(mktemp -d) cp private/tools/prebuilt/*.jar "$temp" - bazel run //scripts:refresh-prebuilts >> "$TEST_LOG" 2>&1 + bazel run //scripts:refresh-prebuilts >> "$TEST_LOG" 2>&1 for i in private/tools/prebuilt/*.jar; do file_name=$(basename $i)