diff options
author | 2023-08-03 16:52:41 +0000 | |
---|---|---|
committer | 2023-08-03 16:52:41 +0000 | |
commit | 7997b3bb1c42fe01a9a3198bef393dce0a0e0c46 (patch) | |
tree | 7c76c2be0a324ab4580d30a55ab080af7a20d560 /tests | |
parent | fac9d8e71d83ddb61e4713f8e207a0c31fc78a44 (diff) | |
parent | 16d10942c5178ae3dda05903534a89594f42c4d7 (diff) |
Merge "Make the bazel sandwich ignore targets that don't exist" into main
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib.sh b/tests/lib.sh index 40b317b06..f337c7457 100644 --- a/tests/lib.sh +++ b/tests/lib.sh @@ -52,6 +52,10 @@ function copy_directory { cp -R "$REAL_TOP/$dir" "$MOCK_TOP/$parent" } +function delete_directory { + rm -rf "$MOCK_TOP/$1" +} + function symlink_file { local file="$1" @@ -138,6 +142,9 @@ function create_mock_bazel { copy_directory build/bazel copy_directory build/bazel_common_rules + # This requires pulling more tools into the mock top to build partitions + delete_directory build/bazel/examples/partitions + symlink_directory packages/modules/common/build symlink_directory prebuilts/bazel symlink_directory prebuilts/clang |