Skip to content

Commit 8ea2981

Browse files
andrew-m-leonardjudovana
authored andcommitted
Ensure jtrunner headless platforms run headless regardless of DISPLAY (#6013)
Signed-off-by: Andrew Leonard <[email protected]>
1 parent 67bc6c5 commit 8ea2981

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jck/jtrunner/JavatestUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ private static boolean generateJTB() throws Exception {
543543
if ( testsRequireDisplay(tests) ) {
544544
if (spec.contains("zos") || spec.contains("alpine-linux") || spec.contains("riscv")) {
545545
fileContent += "set jck.env.testPlatform.headless Yes" + ";\n";
546+
// Ensure JVM graphical device and system are headless, regardless of environment DISPLAY
547+
jvmOpts += "-Djava.awt.headless=true ";
546548
}
547549
else {
548550
if ( !spec.contains("win") ) {

0 commit comments

Comments
 (0)