[JS & Wasm tests] Load properties from root local.properties file too

This commit is contained in:
Zalim Bashorov
2022-11-08 23:03:48 +01:00
parent e0cadb78e1
commit 10bf3b848e
+3 -3
View File
@@ -328,13 +328,13 @@ fun Test.setUpBoxTests() {
systemProperty("overwrite.output", project.providers.gradleProperty("overwrite.output")
.forUseAtConfigurationTime().orNull ?: "false")
val localProperties = Properties().apply {
project.file("local.properties").takeIf { it.isFile }?.inputStream()?.use {
val rootLocalProperties = Properties().apply {
rootProject.file("local.properties").takeIf { it.isFile }?.inputStream()?.use {
load(it)
}
}
val allProperties = localProperties + properties
val allProperties = properties + rootLocalProperties
val prefixForPropertiesToForward = "fd."
for ((key, value) in allProperties) {