mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update test which assumes all previews have the name preview in the version. (#7625)
This commit is contained in:
@@ -847,7 +847,8 @@ namespace PowershellTestConfigNamespace
|
||||
It "Enable-PSSession Cmdlet creates a default PSSession configuration untied to a specific PowerShell version." {
|
||||
$dotPos = $PSVersionTable.PSVersion.ToString().IndexOf(".")
|
||||
$endpointName = "PowerShell." + $PSVersionTable.PSVersion.ToString().Substring(0, $dotPos)
|
||||
if ($PSVersionTable.GitCommitId.Contains("preview"))
|
||||
# any pre-release (a version with a dash) is a preview release
|
||||
if ($PSVersionTable.GitCommitId.Contains("-"))
|
||||
{
|
||||
$endpointName += "-preview"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user