From c603c71b972873d2476e839cf2123da0b80a1080 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Wed, 1 Nov 2017 12:16:58 +0300 Subject: [PATCH] tests: Allow empty string in the test_flags option --- build.gradle | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 3d1a75ea35b..124d59cb1a6 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {