From f40610b4d656d7afeceea23e3bc57c70432b164e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:04:50 +0200 Subject: [PATCH] [PATCH] chore: show `JAVA_MAJOR_VERSION` in tests output Merge pull request jenkinsci/docker-inbound-agent#376 from lemeurherve/chore-show-jdk-version-in-tests-output --- tests/inboundAgent.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/inboundAgent.Tests.ps1 b/tests/inboundAgent.Tests.ps1 index 7a47b59ad..e0ba47806 100644 --- a/tests/inboundAgent.Tests.ps1 +++ b/tests/inboundAgent.Tests.ps1 @@ -145,7 +145,7 @@ Describe "[$global:AGENT_IMAGE] custom build args" { } Describe "[$global:AGENT_IMAGE] passing JVM options (slow test)" { - It "shows the java version with --show-version" { + It "shows the java version ${global:JAVA_MAJOR_VERSION} with --show-version" { $exitCode, $stdout, $stderr = Run-Program 'docker' "network create --driver nat jnlp-network" # Launch the netcat utility, listening at port 5000 for 30 sec # bats will capture the output from netcat and compare the first line