From 91876f004def4a7858bb614091a6cd2fbef681fc Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Fri, 27 Feb 2015 17:14:12 +0000 Subject: Make Rule know about the name of the workspace it is in. This is needed for taking the runfiles prefix from the WORKSPACE file instead of hardcoding it. -- MOS_MIGRATED_REVID=87347883 --- .../java/com/google/devtools/build/lib/testutil/FoundationTestCase.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/java/com/google') diff --git a/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java b/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java index d519e421d6..11750fdf3a 100644 --- a/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java @@ -75,6 +75,7 @@ public abstract class FoundationTestCase extends TestCase { scratch = new Scratch(createFileSystem()); outputBase = scratchDir("/usr/local/google/_blaze_jrluser/FAKEMD5/"); rootDirectory = scratchDir("/" + TestConstants.TEST_WORKSPACE_DIRECTORY); + scratchFile(rootDirectory.getRelative("WORKSPACE").getPathString()); copySkylarkFilesIfExist(); actionOutputBase = scratchDir("/usr/local/google/_blaze_jrluser/FAKEMD5/action_out/"); eventCollector = new EventCollector(EventKind.ERRORS_AND_WARNINGS); -- cgit v1.2.3