Don't run tests for API version less than 1.4

This commit is contained in:
Pavel Punegov
2020-02-04 13:27:00 +03:00
committed by Pavel Punegov
parent 28e9add9b9
commit 18d09c7d51
@@ -542,6 +542,11 @@ fun runTest() {
return false
}
def apiVersion = findLinesWithPrefixesRemoved(text, '// !API_VERSION: ')
if (apiVersion.size() != 0 && !apiVersion.contains("1.4")) {
return false
}
def targetBackend = findLinesWithPrefixesRemoved(text, "// TARGET_BACKEND")
if (targetBackend.size() != 0) {
// There is some target backend. Check if it is NATIVE or not.