Skip to content

Commit 6d39c54

Browse files
committed
test: pass the right env vars to the integration tests
1 parent 1270df0 commit 6d39c54

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ bazel_binaries.local(
359359
)
360360
bazel_binaries.download(version = "7.4.1")
361361
bazel_binaries.download(version = "8.0.0")
362-
bazel_binaries.download(version = "9.0.0rc1")
362+
bazel_binaries.download(version = "last_rc")
363363
use_repo(
364364
bazel_binaries,
365365
"bazel_binaries",
@@ -368,7 +368,7 @@ use_repo(
368368
"bazel_binaries_bazelisk",
369369
"build_bazel_bazel_7_4_1",
370370
"build_bazel_bazel_8_0_0",
371-
"build_bazel_bazel_9_0_0rc1",
371+
"build_bazel_bazel_last_rc",
372372
# "build_bazel_bazel_rolling",
373373
"build_bazel_bazel_self",
374374
)

tests/integration/BUILD.bazel

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("@bazel_binaries//:defs.bzl", "bazel_binaries")
1615
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "default_test_runner")
1716
load("//python:py_library.bzl", "py_library")
1817
load(":integration_test.bzl", "rules_python_integration_test")
@@ -78,32 +77,34 @@ rules_python_integration_test(
7877

7978
rules_python_integration_test(
8079
name = "ignore_root_user_error_test",
80+
env = {
81+
"RULES_PYTHON_BZLMOD_DEBUG": "1",
82+
},
8183
)
8284

8385
rules_python_integration_test(
8486
name = "ignore_root_user_error_workspace_test",
8587
bzlmod = False,
8688
workspace_path = "ignore_root_user_error",
89+
env = {
90+
"RULES_PYTHON_BZLMOD_DEBUG": "1",
91+
},
8792
)
8893

8994
rules_python_integration_test(
9095
name = "local_toolchains_test",
91-
bazel_versions = [
92-
version
93-
for version in bazel_binaries.versions.all
94-
if not version.startswith("6.")
95-
],
96+
env = {
97+
"RULES_PYTHON_BZLMOD_DEBUG": "1",
98+
},
9699
)
97100

98101
rules_python_integration_test(
99102
name = "local_toolchains_workspace_test",
100-
bazel_versions = [
101-
version
102-
for version in bazel_binaries.versions.all
103-
if not version.startswith("6.")
104-
],
105103
bzlmod = False,
106104
workspace_path = "local_toolchains",
105+
env = {
106+
"RULES_PYTHON_BZLMOD_DEBUG": "1",
107+
},
107108
)
108109

109110
rules_python_integration_test(

0 commit comments

Comments
 (0)