[MNG-7217] Separate argument and value for -fos

Closes #123
This commit is contained in:
Maarten Mulders 2021-11-03 14:41:25 +01:00
parent df4a3134a7
commit 657c4e9be5
1 changed files with 6 additions and 4 deletions

View File

@ -42,8 +42,9 @@ public class MavenITmng6562WarnDefaultBindings
Verifier verifier = newVerifier( testDir.getAbsolutePath(), false );
verifier.setAutoclean( false );
verifier.setLogFileName( phase + ".txt" );
verifier.setForkJvm( true ); // required due to --fos-on-severity
verifier.addCliOption( "-fos=WARN" ); // ALSO NO WARNINGS
verifier.setForkJvm( true ); // required due to --fail-on-severity
verifier.addCliOption( "-fos" );
verifier.addCliOption( "WARN" ); // ALSO NO WARNINGS
verifier.executeGoals( Arrays.asList( phase ) );
verifier.resetStreams();
@ -60,8 +61,9 @@ public class MavenITmng6562WarnDefaultBindings
Verifier verifier = newVerifier( testDir.getAbsolutePath(), false );
verifier.setAutoclean( false );
verifier.setLogFileName( phase + ".txt" );
verifier.setForkJvm( true ); // required due to --fos-on-severity
verifier.addCliOption( "-fos=WARN" ); // ALSO NO WARNINGS
verifier.setForkJvm( true ); // required due to --fail-on-severity
verifier.addCliOption( "-fos" );
verifier.addCliOption( "WARN" ); // ALSO NO WARNINGS
verifier.executeGoals( Arrays.asList( phase ) );
verifier.resetStreams();