Skip to content

Commit ed6659f

Browse files
committed
Allow to pass target_compatible_with for integration tests
1 parent 92bc064 commit ed6659f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rules_haskell_tests/tests/integration_testing/rules_haskell_integration_test.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def rules_haskell_integration_test(
1818
deps = [],
1919
bindist_bazel_versions = SUPPORTED_BAZEL_VERSIONS,
2020
nixpkgs_bazel_packages = SUPPORTED_NIXPKGS_BAZEL_PACKAGES,
21+
target_compatible_with = [],
2122
**kwargs):
2223
bindist_bazel_binaries = {
2324
version.replace(".", "_"): integration_test_utils.bazel_binary_label(version)
@@ -40,7 +41,7 @@ def rules_haskell_integration_test(
4041
workspace_path = workspace_path,
4142
rule_files = ["@rules_haskell//:distribution"],
4243
target_compatible_with = select({
43-
"//tests:nix": [],
44+
"//tests:nix": target_compatible_with,
4445
"//conditions:default": ["@platforms//:incompatible"],
4546
}),
4647
**kwargs
@@ -55,7 +56,7 @@ def rules_haskell_integration_test(
5556
rule_files = ["@rules_haskell//:distribution"],
5657
target_compatible_with = select({
5758
"//tests:nix": ["@platforms//:incompatible"],
58-
"//conditions:default": [],
59+
"//conditions:default": target_compatible_with,
5960
}),
6061
**kwargs
6162
)

0 commit comments

Comments
 (0)