aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2015-11-16 14:59:53 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-11-16 15:13:04 +0000
commit50bf666652aacd274d534ad4ec4eadf8e8452e05 (patch)
tree7829f290e07f037852f6b99f9ee2b0d0f7d5a59e
parent0d456d9ce4691ba61735cb64b2c1d73b5b144203 (diff)
De-dup worker_input file
An upcoming change exposed that worker_input ends up being created by multiple rules, which Bazel doesn't like. -- MOS_MIGRATED_REVID=107934993
-rwxr-xr-xsrc/test/shell/bazel/bazel_worker_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/shell/bazel/bazel_worker_test.sh b/src/test/shell/bazel/bazel_worker_test.sh
index 17d819a588..60a53b8b3c 100755
--- a/src/test/shell/bazel/bazel_worker_test.sh
+++ b/src/test/shell/bazel/bazel_worker_test.sh
@@ -153,7 +153,7 @@ def _impl(ctx):
output = ctx.outputs.out
# Generate the "@"-file containing the command-line args for the unit of work.
- argfile = ctx.new_file(ctx.configuration.bin_dir, "worker_input")
+ argfile = ctx.new_file(ctx.configuration.bin_dir, "%s_worker_input" % ctx.label.name)
argfile_contents = "\n".join(["--output_file=" + output.path] + ctx.attr.args)
ctx.file_action(output=argfile, content=argfile_contents)