1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fixes the -d bug when running tests.

Fixes https://github.com/cbeust/kobalt/issues/189
This commit is contained in:
Cedric Beust 2016-05-05 21:49:26 -08:00
parent 40360e3886
commit e6ba79e96d

View file

@ -74,7 +74,7 @@ abstract class GenericTestRunner: ITestRunnerContributor {
} }
// JVM flags from the interceptors (these overwrite flags instead of just adding to the list) // JVM flags from the interceptors (these overwrite flags instead of just adding to the list)
var interceptedArgs = ArrayList(flagsFromContributors) var interceptedArgs = ArrayList(jvmFlags + flagsFromContributors)
pluginInfo.testJvmFlagInterceptors.forEach { pluginInfo.testJvmFlagInterceptors.forEach {
val newFlags = it.testJvmFlagsFor(project, context, interceptedArgs) val newFlags = it.testJvmFlagsFor(project, context, interceptedArgs)
interceptedArgs.clear() interceptedArgs.clear()