mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-27 07:55:25 +00:00
Disable test on windows because all jar files are locked and the repository can't even be deleted
This commit is contained in:
@@ -18,6 +18,7 @@ package org.mvndaemon.mvnd.it;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
import org.junit.jupiter.api.Assumptions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.mvndaemon.mvnd.assertj.TestClientOutput;
|
import org.mvndaemon.mvnd.assertj.TestClientOutput;
|
||||||
import org.mvndaemon.mvnd.client.Client;
|
import org.mvndaemon.mvnd.client.Client;
|
||||||
@@ -37,6 +38,9 @@ public class DeleteRepoNativeIT {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void buildDeleteRepoAndRebuild() throws IOException, InterruptedException {
|
void buildDeleteRepoAndRebuild() throws IOException, InterruptedException {
|
||||||
|
Assumptions.assumeTrue(Os.current() != Os.WINDOWS,
|
||||||
|
"Test disabled on windows because all jar files are locked, so we can't even delete the repository");
|
||||||
|
|
||||||
final Path localMavenRepo = parameters.mavenRepoLocal();
|
final Path localMavenRepo = parameters.mavenRepoLocal();
|
||||||
TestUtils.deleteDir(localMavenRepo);
|
TestUtils.deleteDir(localMavenRepo);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user