[ubuntu] Refactor test helpers (#8938)

* [ubuntu] Refactor test helpers

* [ubuntu] Adjust help comment
This commit is contained in:
Shamil Mubarakshin
2023-12-04 12:05:25 +01:00
committed by GitHub
parent 5ed2615017
commit ff1dc02cbc
4 changed files with 82 additions and 19 deletions

View File

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