aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/build_rules/test_rules.bzl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/build_rules/test_rules.bzl b/tools/build_rules/test_rules.bzl
index a594ed328e..9daea85c75 100644
--- a/tools/build_rules/test_rules.bzl
+++ b/tools/build_rules/test_rules.bzl
@@ -250,9 +250,10 @@ def _file_test_impl(ctx):
executable=True)
return struct(runfiles=ctx.runfiles([exe, dat, file_]))
if matches != -1:
- script = "[ %s == $(grep -c %s %s) ]" % (matches, repr(regexp), file_.path)
+ script = "[ %s == $(grep -c %s %s) ]" % (
+ matches, repr(regexp), file_.short_path)
else:
- script = "grep %s %s" % (repr(regexp), file_.path)
+ script = "grep %s %s" % (repr(regexp), file_.short_path)
ctx.file_action(
output=exe,
content=script,