preserve XAUTHORITY env variable

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • jtreg8.1
    • Affects Version/s: None
    • Component/s: tools
    • None
    • linux

      jtreg stips most of the env variable, please add the XAUTHORITY to the whitelist.

      More context:

      In client, we usually work around the following error by calling the "xhost +" cmd to allow all connections.

      > Authorization required, but no authorization protocol specified
      >
      > java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable

      But OL10 doesn't have the xhost tool, so I have to specify -e:"XAUTHORITY=$XAUTHORITY" for jtreg directly to allow tests to pass.

      This request is similar to CODETOOLS-7903400.

            Assignee:
            Jaikiran Pai
            Reporter:
            Alexander Zvegintsev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: