fix version test to allow not to have a pre-release portion. (#5893)
This commit is contained in:
parent
2f818615be
commit
ab9a583516
|
@ -5,7 +5,7 @@ Describe "PSVersionTable" -Tags "CI" {
|
|||
$formattedVersion = $sma.VersionInfo.ProductVersion
|
||||
|
||||
$mainVersionPattern = "(\d+\.\d+\.\d+)(-.+)?"
|
||||
$fullVersionPattern = "^v(\d+\.\d+\.\d+)-(.+)-(\d+)-g(.+)$"
|
||||
$fullVersionPattern = "^v(\d+\.\d+\.\d+)(-.+)?-(\d+)-g(.+)$"
|
||||
|
||||
$expectedPSVersion = ($formattedVersion -split " ")[0]
|
||||
$expectedVersionPattern = "^$mainVersionPattern$"
|
||||
|
|
Loading…
Reference in a new issue