diff options
| author | 2022-09-22 11:43:21 -0400 | |
|---|---|---|
| committer | 2022-09-22 11:43:21 -0400 | |
| commit | 0d08b9ba35642cd4e5d9d06b400e9b325ab54c09 (patch) | |
| tree | 8fe3203370f3781d1534b61404c28131eee9ec4a | |
| parent | 94a0373f1ef92d590312cbfa2d3551d04c886c06 (diff) | |
document workaround test_bp2build_generates_all_buildfiles
test_bp2build_generates_all_buildfiles uses the same directory for
--output_base and --sandbox_tmpfs_path. This is required on the build
servers, but causes issues locally. This commit adds a more helpful
error message when this test fails.
Test: build/soong/tests/bp2build_bazel_test.sh
Change-Id: Ib29a7edf456f8ae39bd429ebb367c8115e02c284
| -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 |