diff options
| -rwxr-xr-x | tests/bp2build_bazel_test.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bp2build_bazel_test.sh b/tests/bp2build_bazel_test.sh index 78af54d4a..3cb6c8cca 100755 --- a/tests/bp2build_bazel_test.sh +++ b/tests/bp2build_bazel_test.sh @@ -114,7 +114,10 @@ EOF fi } +_save_trap=$(trap -p EXIT) +trap '[[ $? -ne 0 ]] && echo Are you running this locally? Try changing --sandbox_tmpfs_path to something other than /tmp/ in build/bazel/linux.bazelrc.' EXIT test_bp2build_generates_all_buildfiles +eval ${_save_trap} function test_cc_correctness { setup |