Skip to content

Commit

Permalink
Support testing with Bazel 8 (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten authored Dec 2, 2024
1 parent 42bb0b2 commit c9ea876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_runfiles_symlinks() -> None:
def test_binary_env() -> None:
"""Test that env attr on the binary target is handled."""
bazel_version = os.getenv("USE_BAZEL_VERSION", "latest")
if bazel_version.startswith(("latest", "7.")):
if bazel_version.startswith(("latest", "7.", "8.")):
# Bazel >= 7.0.0 does set the RunEnvironmentInfo provider 🎉.
assert os.getenv("MY_BINARY_ENV") == "propagated only in Bazel 7+"
else:
Expand Down

0 comments on commit c9ea876

Please sign in to comment.