aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2016-10-21 12:58:37 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-10-21 14:20:58 +0000
commit0bef2142e869b0aa9360f383569dbfade44ba988 (patch)
treef5b8445578840e435bb662947d3f286c51b68d87 /src/test
parent50cf1c1c36e0492460fd7eb1dbfbe82c98f4b578 (diff)
Use a select in the data attribute of bazel_toolchain_test to remove the Linaro compiler filegroup on macOS. This fixes the broken bazel_toolchain_test on macOS.
I filed a bug to track the real issue (HardlinkedExecRoot sometimes seems to fail when inputs contain directories): https://github.com/bazelbuild/bazel/issues/1974 -- MOS_MIGRATED_REVID=136823559
Diffstat (limited to 'src/test')
-rw-r--r--src/test/shell/bazel/BUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test/shell/bazel/BUILD b/src/test/shell/bazel/BUILD
index 3d70474b93..06d0032fcd 100644
--- a/src/test/shell/bazel/BUILD
+++ b/src/test/shell/bazel/BUILD
@@ -120,10 +120,13 @@ sh_test(
name = "bazel_toolchain_test",
size = "medium",
srcs = ["bazel_toolchain_test.sh"],
- data = [
- ":test-deps",
- "//src/test/shell/bazel/testdata:bazel_toolchain_test_project_pkg",
- ],
+ data = [":test-deps"] + select({
+ "//src:darwin": [],
+ "//src:darwin_x86_64": [],
+ "//src:windows": [],
+ "//src:windows_msvc": [],
+ "//conditions:default": ["//src/test/shell/bazel/testdata:bazel_toolchain_test_project_pkg"],
+ }),
tags = [
"requires-network",
],