Skip to content

Commit

Permalink
Avoid using twice the same directory for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Nov 28, 2023
1 parent 61182e3 commit b1fee61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public void testCustomOutputDirSetInProfile() throws MavenInvocationException, I

@Test
public void testThatNonExistentSrcDirCanBeAdded() throws MavenInvocationException, IOException {
testDir = initProject("projects/classic", "projects/project-classic-run-java-change");
testDir = initProject("projects/classic", "projects/project-classic-non-existent-src-dir-can-be-added");

File sourceDir = new File(testDir, "src/main/java");
File sourceDirMoved = new File(testDir, "src/main/java-moved");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public class ImageBuildIT extends MojoTestBase {
private RunningInvoker running;
private File testDir;

// We can only test with jib as its the only extension that has 0 dependencies from the system.
// We can only test with jib as it's the only extension that has 0 dependencies from the system.
@Test
@EnabledOnOs({ OS.LINUX })
public void testImageBuildWithJib() throws Exception {
Properties buildProperties = new Properties();
buildProperties.put("quarkus.container-image.builder", "jib");

testDir = initProject("projects/classic");
testDir = initProject("projects/classic", "projects/image-build-with-jib");
running = new RunningInvoker(testDir, false);
final MavenProcessInvocationResult result = running.execute(Collections.singletonList("quarkus:image-build"),
Collections.emptyMap(), buildProperties);
Expand Down

0 comments on commit b1fee61

Please sign in to comment.