Fix build breakage caused by https://github.com/bazelbuild/bazel/commit/f09429c201347f306954479d6ad156efa7cc49d8
RELNOTES: None.
PiperOrigin-RevId: 221451807
diff --git a/tools/build_rules/test_rules.bzl b/tools/build_rules/test_rules.bzl
index 675b0e3..791bb67 100644
--- a/tools/build_rules/test_rules.bzl
+++ b/tools/build_rules/test_rules.bzl
@@ -77,7 +77,7 @@
ctx.actions.write(
output = exe,
content = "(cat " + dat.short_path + " ; echo ) >&2 ; exit 1",
- executable = True,
+ is_executable = True,
)
return struct(runfiles = ctx.runfiles([exe, dat]))
@@ -249,7 +249,7 @@
]
ctx.actions.write(output = file_, content = v)
script = "\n".join(commands + ["true"])
- ctx.actions.write(output = exe, content = script, executable = True)
+ ctx.actions.write(output = exe, content = script, is_executable = True)
return struct(runfiles = ctx.runfiles([exe] + files))
else:
return success_target(ctx, "success")