Skip to content

Commit 29afcaa

Browse files
Ensure jtrunner headless platforms run headless regardless of DISPLAY (#6013)
Signed-off-by: Andrew Leonard <[email protected]>
1 parent b3b0a7d commit 29afcaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jck/jtrunner/JavatestUtil.java

+2
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)