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 toCODETOOLS-7903400.
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