Skip to content
Browse files

if passed in options are already having a dash then do nothing

git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/branches/surefire@544104 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 52dc0c9 commit 54eb3c522b8f8e751862f21b375382f0e3caecd9 Alexandru Popescu committed
View
9 ...ire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java
@@ -56,7 +56,14 @@ else if ( "threadcount".equals( key ) )
{
val = convert( val, String.class );
}
- convertedOptions.put( "-" + key, val );
+ if ( key.startsWith("-") )
+ {
+ convertedOptions.put( key, val );
+ }
+ else
+ {
+ convertedOptions.put( "-" + key, val );
+ }
}
testng.configure( convertedOptions );

0 comments on commit 54eb3c5

Please sign in to comment.
Something went wrong with that request. Please try again.