Skip to content

Commit

Permalink
Add java-home to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mcnamara committed Sep 28, 2024
1 parent 18bedc2 commit 550db07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public static BlazeInfo createMockBlazeInfo(
.put(EXECUTION_ROOT_KEY, executionRoot)
.put(blazeBinKey(buildSystemName), blazeBin)
.put(blazeGenfilesKey(buildSystemName), blazeGenFiles)
.put(blazeTestlogsKey(buildSystemName), blazeTestlogs);
.put(blazeTestlogsKey(buildSystemName), blazeTestlogs)
.put(JAVA_HOME, "/tmp/java");
return BlazeInfo.create(buildSystemName, blazeInfoMap.build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public void doSetup() throws Throwable {
.put(BlazeInfo.OUTPUT_BASE_KEY, outputBase)
.put(BlazeInfo.OUTPUT_PATH_KEY, outputPath)
.put(BlazeInfo.PACKAGE_PATH_KEY, workspaceRoot.toString())
.put(BlazeInfo.JAVA_HOME, "/tmp/java")
.build());

// The tests run a full sync and hence also include the JDK setup part (if the workspace is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public class FastBuildChangedFilesServiceTest extends BlazeIntegrationTestCase {
"blaze-testlogs", BLAZE_TESTLOGS,
"execution_root", BLAZE_EXECROOT,
"output_base", "/blaze/output-base",
"output_path", "/blaze/output-base/output-path"
"output_path", "/blaze/output-base/output-path",
"java-home", "/tmp/java"
));

private FastBuildChangedFilesService changedFilesService;
Expand Down

0 comments on commit 550db07

Please sign in to comment.