aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar Yue Gan <yueg@google.com>2016-04-08 08:35:46 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-04-08 14:34:46 +0000
commit0eda09d599c9eb83bf3ebb747d9dcb0390453999 (patch)
treea1b177e5a412d86c4188f555762cfdc8aa270f4c /src/main/java/com/google/devtools/build
parent3ab018d6d8f49eb4eee7cbefee094fb68c3051a3 (diff)
Run test in standalone mode with "local = 1". Fixes #1052.
-- MOS_MIGRATED_REVID=119351752
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/test/TestTargetProperties.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/test/TestTargetProperties.java b/src/main/java/com/google/devtools/build/lib/rules/test/TestTargetProperties.java
index c8190e48e4..4cd561c6fc 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/test/TestTargetProperties.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/test/TestTargetProperties.java
@@ -83,6 +83,9 @@ public class TestTargetProperties {
Map<String, String> executionInfo = Maps.newLinkedHashMap();
executionInfo.putAll(TargetUtils.getExecutionInfo(rule));
+ if (isLocal) {
+ executionInfo.put("local", "");
+ }
if (executionRequirements != null) {
// This will overwrite whatever TargetUtils put there, which might be confusing.
executionInfo.putAll(executionRequirements.getExecutionInfo());