Skip to content

Commit 7cceefc

Browse files
committed
skip workspace, windows
1 parent 34a3090 commit 7cceefc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/support/support.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
# rules_testing or as config_setting values, which don't support Label in some
2020
# places.
2121

22+
load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility
2223
load("//python/private:util.bzl", "IS_BAZEL_7_OR_HIGHER") # buildifier: disable=bzl-visibility
2324

2425
MAC = Label("//tests/support:mac")
@@ -48,3 +49,8 @@ SUPPORTS_BOOTSTRAP_SCRIPT = select({
4849
"@platforms//os:windows": ["@platforms//:incompatible"],
4950
"//conditions:default": [],
5051
}) if IS_BAZEL_7_OR_HIGHER else ["@platforms//:incompatible"]
52+
53+
SUPPORTS_BZLMOD_UNIXY = select({
54+
"@platforms//os:windows": ["@platforms//:incompatible"],
55+
"//conditions:default": [],
56+
}) if BZLMOD_ENABLED else ["@platforms//:incompatible"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
load("//python:py_test.bzl", "py_test")
2+
load("//tests/support:support.bzl", "BZLMOD_UNIXY")
23

34
py_test(
45
name = "verify_files_test",
56
srcs = ["verify_files_test.py"],
7+
target_compatible_with = BZLMOD_UNIXY,
68
deps = ["@somepkg_with_build_files//:pkg"],
79
)

0 commit comments

Comments
 (0)