Filter tests with regard to file separator

This commit is contained in:
Pavel Punegov
2019-02-13 11:00:36 +03:00
committed by Pavel Punegov
parent c258bcfb70
commit a7723ee0bc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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