Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8155831

Provide for extra jvm arguments for gradle test task

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • javafx
    • None

      I need a mechanism to pass additional arguments through to the test worker

      Like -PEXTRA_TEST_ARGS="-Dprism.order=sw"

      The split is needed to properly separate multiple space separated command line arguments.

      diff -r b07a500d76ea build.gradle
      --- a/build.gradle Mon May 02 10:44:07 2016 -0400
      +++ b/build.gradle Mon May 02 10:46:02 2016 -0400
      @@ -1298,6 +1298,10 @@
               }
       
               systemProperty 'unstable.test', IS_UNSTABLE_TEST
      +
      + if (project.hasProperty("EXTRA_TEST_ARGS")) {
      + jvmArgs EXTRA_TEST_ARGS.split(' ')
      + }
           }
       
           compileTestJava {

            ddhill David Hill (Inactive)
            ddhill David Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: