From 2a63bf50b3ed7015e0cd21a284fbf426b1550b80 Mon Sep 17 00:00:00 2001 From: Simon Mavi Stewart Date: Wed, 25 Jan 2023 11:44:55 +0000 Subject: [PATCH] More debugging --- tests/bazel_run_tests.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/bazel_run_tests.sh b/tests/bazel_run_tests.sh index 2717213d9..1ec422e09 100755 --- a/tests/bazel_run_tests.sh +++ b/tests/bazel_run_tests.sh @@ -180,15 +180,10 @@ function expect_same() { local after="$2" if [ "$before" != "$after" ]; then - printf "FAILED\n" - diff <(echo "$before") <(echo "$after") - - echo "Before" - od -a "$before" - - echo "After" - od -a "$after" + diff <(echo "$before") <(echo "$after") >> "$TEST_LOG" 2>&1 + printf "FAILED\n" + cat $TEST_LOG DUMPED_TEST_LOG=1 return 1 fi