Skip to content

Commit

Permalink
chore: fix: acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Jan 20, 2025
1 parent 7db0d6d commit 91d3529
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def testAcceptanceFinally = tasks.register('testAcceptanceFinally') {
if (!project.ext.xvfbPid.isEmpty()) {
println "Stopping virtual X server..."
def outputStream = new ByteArrayOutputStream()
def injected = project.objects.newInstance(InjectedExecOps)
def pid = project.ext.xvfbPid
injected.execOps.exec {
commandLine 'sh', '-c', "kill ${pid} &"
Expand All @@ -167,7 +166,7 @@ def testAcceptanceFinally = tasks.register('testAcceptanceFinally') {
}
}

tasks.register('testAcceptance', JavaExec) {
tasks.register('testAcceptance', Test) {
def display = project.hasProperty("testDisplay") ? project.getProperty("testDisplay") : ""
if (!display.isEmpty()) {
def lockFile = new File("/tmp/.X${display}-lock")
Expand All @@ -189,12 +188,13 @@ tasks.register('testAcceptance', JavaExec) {
description = 'Run Acceptance GUI test'
group = 'verification'
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(21)
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.ADOPTIUM
}
jvmArgs(["--add-opens", "java.desktop/sun.awt.X11=ALL-UNNAMED",
"--add-opens", "java.base/java.util=ALL-UNNAMED"])
classpath = sourceSets.testAcceptance.runtimeClasspath
testClassesDirs = sourceSets.testAcceptance.output.classesDirs
systemProperty 'java.util.logging.config.file', "${rootDir}/config/test/logger.properties"
dependsOn tasks.named('firstStepsEn')
dependsOn ':aligner:jar'
Expand Down

0 comments on commit 91d3529

Please sign in to comment.