You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2020/09/30 07:50:03 UTC

[lucene-solr] branch master updated: LUCENE-9549: add command-line quotes for 'reproduce with'.

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 9bfaca0  LUCENE-9549: add command-line quotes for 'reproduce with'.
9bfaca0 is described below

commit 9bfaca0606968ed970d9d12d871f977e2655765b
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Wed Sep 30 09:49:52 2020 +0200

    LUCENE-9549: add command-line quotes for 'reproduce with'.
---
 gradle/testing/randomization.gradle | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gradle/testing/randomization.gradle b/gradle/testing/randomization.gradle
index 298bfe1..452e1e3 100644
--- a/gradle/testing/randomization.gradle
+++ b/gradle/testing/randomization.gradle
@@ -22,6 +22,7 @@
 import java.nio.file.*
 import com.carrotsearch.randomizedtesting.SeedUtils
 import com.carrotsearch.randomizedtesting.generators.RandomPicks
+import org.apache.tools.ant.types.Commandline
 
 buildscript {
   repositories {
@@ -144,7 +145,7 @@ allprojects {
         def value = testOptionsResolved[opt.propName]
         return defValue != value
       }.collect { opt ->
-        "-P" + opt.propName + "=" + testOptionsResolved[opt.propName]
+        Commandline.quoteArgument("-P" + opt.propName + "=" + testOptionsResolved[opt.propName])
       }.join(" ")
 
       // leaving temporary folder option has multiple aliases...