aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2015-08-25 18:20:26 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-08-26 07:40:30 +0000
commit3a280ea336090d745cc65829c463c30d7cda700a (patch)
tree04db10e783d4cb89af9afaf35485ff409317c36a /tools
parent8e17c85ba66b2da92e029464b6b2481c64e2e78b (diff)
Fix path for input file
-- MOS_MIGRATED_REVID=101485838
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,