Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10528

TestScripts.testLukeCanBeLaunched creates X Window when running the tests

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.2
    • None
    • None
    • New

    Description

      When running the tests, this one causes my entire desktop to "flicker" when it creates some kind of X-Window very quickly and then destroys it. I use tiling window manager, so whole desktop gets rearranged for a split second, and I'd rather it not happen

      I first tried adding -Djava.awt.headless=true to both org.gradle.jvmargs and tests.jvmargs in my .gradle/gradle.properties. doesn't work, as the test doesnt use these when launching luke.

      I next tried hacking the test by adding this to the ProcessBuilderThingy, but it didn't help either:

      .envvar("LAUNCH_OPTS", "-Djava.awt.headless=true")
      

      One way I can work around it, is to unset DISPLAY env var so that it won't create this window. test still passes:

      $ unset DISPLAY
      $ ./gradlew :lucene:distribution.tests:test
      ... (no window gets created)
      

      So maybe as a workaround, we can just not pass DISPLAY environment variable through to this test?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rcmuir Robert Muir
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h 10m
                  6h 10m