diff options
author | 2016-04-08 08:35:46 +0000 | |
---|---|---|
committer | 2016-04-08 14:34:46 +0000 | |
commit | 0eda09d599c9eb83bf3ebb747d9dcb0390453999 (patch) | |
tree | a1b177e5a412d86c4188f555762cfdc8aa270f4c /src/main/java/com/google/devtools/build | |
parent | 3ab018d6d8f49eb4eee7cbefee094fb68c3051a3 (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.java | 3 |
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()); |