tests: Allow empty string in the test_flags option

This commit is contained in:
Ilya Matveev
2017-11-01 12:16:58 +03:00
committed by ilmat192
parent d7795bb207
commit c603c71b97
+3 -6
View File
@@ -116,12 +116,9 @@ void loadCommandLineProperties() {
if (project.hasProperty("konanc_flags")) {
throw new Error("Specify either -Ptest_flags or -Pbuild_flags.")
}
ext.globalBuildArgs = project.hasProperty("build_flags")
? ext.build_flags.split(' '): []
ext.globalTestArgs = project.hasProperty("test_flags")
? ext.test_flags.split(' '): []
ext.testTarget = project.hasProperty("test_target")
? ext.test_target: null
ext.globalBuildArgs = project.hasProperty("build_flags") ? ext.build_flags.split() : []
ext.globalTestArgs = project.hasProperty("test_flags") ? ext.test_flags.split() : []
ext.testTarget = project.hasProperty("test_target") ? ext.test_target : null
}
class PlatformInfo {