[MNG-7338] Disable CI mode for certain tests which verify on log statements. (#209)

This commit is contained in:
Martin Kanters 2023-06-08 15:44:00 +02:00 committed by GitHub
parent b8f4ef8332
commit fca1dd661a
3 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,7 @@ public class MavenITmng4461ArtifactUploadMonitorTest extends AbstractMavenIntegr
Verifier verifier = newVerifier(testDir.getAbsolutePath());
verifier.setAutoclean(false);
verifier.deleteDirectory("target");
verifier.setEnvironmentVariable("CI", "false");
verifier.addCliArgument("validate");
verifier.execute();
verifier.verifyErrorFreeLog();

View File

@ -51,6 +51,7 @@ public class MavenITmng4829ChecksumFailureWarningTest extends AbstractMavenInteg
verifier.deleteArtifacts("org.apache.maven.its.mng4829");
verifier.addCliArgument("-s");
verifier.addCliArgument("settings.xml");
verifier.setEnvironmentVariable("CI", "false");
verifier.filterFile("settings-template.xml", "settings.xml", "UTF-8");
verifier.addCliArgument("validate");
verifier.execute();

View File

@ -55,11 +55,13 @@ public class MavenITmng6240PluginExtensionAetherProvider extends AbstractMavenIn
File projectDir = new File(testDir, "project");
Verifier verifier = newVerifier(pluginDir.getAbsolutePath(), "remote");
verifier.setEnvironmentVariable("CI", "false");
verifier.addCliArgument("install");
verifier.execute();
verifier.verifyErrorFreeLog();
verifier = newVerifier(projectDir.getAbsolutePath(), "remote");
verifier.setEnvironmentVariable("CI", "false");
verifier.addCliArgument("deploy");
verifier.execute();
verifier.verifyErrorFreeLog();