aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib
diff options
context:
space:
mode:
authorGravatar Chris Parsons <cparsons@google.com>2015-08-31 15:41:09 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-08-31 19:21:07 +0000
commit6c29d57b6ddef8a6e7ac39b09e9338f616e78e4d (patch)
tree4007f29b02b530dbeea9bf9e78d8d1756c5bdbdc /src/main/java/com/google/devtools/build/lib
parent676905a9e828adc5cf6f43893703f93568f37dfe (diff)
For standalone tests, cd into the workspace directory before running the test script.
-- MOS_MIGRATED_REVID=101937276
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/test/StandaloneTestStrategy.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/test/StandaloneTestStrategy.java b/src/main/java/com/google/devtools/build/lib/rules/test/StandaloneTestStrategy.java
index 377e95c00b..2e29789360 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/test/StandaloneTestStrategy.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/test/StandaloneTestStrategy.java
@@ -159,6 +159,7 @@ public class StandaloneTestStrategy extends TestStrategy {
*/
vars.put("TEST_SRCDIR", runfilesDir.getPathString());
vars.put("TEST_TMPDIR", tmpDir.getPathString());
+ vars.put("TEST_WORKSPACE", action.getRunfilesPrefix());
vars.put("XML_OUTPUT_FILE", resolvedPaths.getXmlOutputPath().getPathString());
return vars;