Filter tests with regard to file separator
This commit is contained in:
committed by
Pavel Punegov
parent
c258bcfb70
commit
a7723ee0bc
@@ -211,7 +211,7 @@ static boolean isExcluded(String dir) {
|
||||
|
||||
boolean result = false
|
||||
excluded.forEach {
|
||||
if (dir.endsWith(it)) {
|
||||
if (dir.endsWith(it.replace("/", File.separator))) {
|
||||
result = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -897,7 +897,7 @@ fun runTest() {
|
||||
boolean isEnabledForNativeBackend(String fileName) {
|
||||
def text = project.file(fileName).text
|
||||
|
||||
if (excludeList.contains(fileName)) return false
|
||||
if (excludeList.contains(fileName.replace(File.separator, "/"))) return false
|
||||
|
||||
if (findLinesWithPrefixesRemoved(text, "// WITH_REFLECT").size() != 0) return false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user