[Ubuntu] Add Java 21 (#8560)

This commit is contained in:
Vasilii Polikarpov
2023-10-18 09:51:22 +02:00
committed by GitHub
parent f2d892281b
commit 0253f21ea5
4 changed files with 8 additions and 3 deletions

View File

@@ -45,6 +45,6 @@ Describe "Java" {
if ($Version -eq 8) {
$Version = "1.${Version}"
}
"`"$javaPath`" -version" | Should -MatchCommandOutput ([regex]::Escape("openjdk version `"${Version}."))
"`"$javaPath`" -version" | Should -MatchCommandOutput "openjdk\ version\ `"${Version}(\.[0-9_\.]+)?`""
}
}