Disable the testmod by default

This commit is contained in:
embeddedt 2024-03-14 22:13:27 -04:00
parent 40b9ac6002
commit e6bb67cb05
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -23,9 +23,11 @@ def current_platforms = getProperty("enabled_platforms").tokenize(',')
current_platforms.each { it ->
def platform_name = it.trim()
include(platform_name)
def testmodFolder = new File(platform_name + "/" + "testmod")
if(testmodFolder.isDirectory()) {
include(platform_name + ":testmod")
if(hasProperty("modernfix.testmod.enable")) {
def testmodFolder = new File(platform_name + "/" + "testmod")
if (testmodFolder.isDirectory()) {
include(platform_name + ":testmod")
}
}
}