mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-22410: Do not provide target for custom mode
This commit is contained in:
@@ -207,7 +207,14 @@ abstract class PyUniversalTestConfiguration(project: Project,
|
||||
return result + generateRawArguments()
|
||||
}
|
||||
|
||||
fun getTestSpec() = listOf(target.targetType.optionName, target.target) + generateRawArguments()
|
||||
fun getTestSpec(): List<String> {
|
||||
// For custom we only need to provide additional (raw) args
|
||||
// Provide target otherwise
|
||||
if (target.targetType == TestTargetType.CUSTOM) {
|
||||
return generateRawArguments()
|
||||
}
|
||||
return listOf(target.targetType.optionName, target.target) + generateRawArguments()
|
||||
}
|
||||
|
||||
/**
|
||||
* raw arguments to be added after "--" and passed to runner directly
|
||||
|
||||
Reference in New Issue
Block a user