Move to 9.0.0-preview.6.24327.7 (#24133)

---------

Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com>
This commit is contained in:
Travis Plunk
2024-08-13 10:18:39 -07:00
committed by GitHub
co-authored by James Truher [MSFT]
parent 61fa143ede
commit c11e4cf0d1
15 changed files with 51 additions and 32 deletions
@@ -44,7 +44,7 @@ Describe "Configuration file locations" -tags "CI","Slow" {
}
It @ItArgs "PSModulePath should contain the correct path" {
$env:PSModulePath = ""
$env:PSModulePath = $null
$actual = & $powershell -noprofile -c `$env:PSModulePath
$actual | Should -Match ([regex]::Escape($expectedModule))
}
@@ -94,7 +94,7 @@ Describe "Configuration file locations" -tags "CI","Slow" {
}
It @ItArgs "PSModulePath should respect XDG_DATA_HOME" {
$env:PSModulePath = ""
$env:PSModulePath = $null
$env:XDG_DATA_HOME = $TestDrive
$expected = [IO.Path]::Combine($TestDrive, "powershell", "Modules")
$actual = & $powershell -noprofile -c `$env:PSModulePath
@@ -683,7 +683,7 @@ Describe "Additional tests for Import-Module with WinCompat" -Tag "Feature" {
@"
{"Microsoft.PowerShell:ExecutionPolicy": "RemoteSigned", "WindowsPowerShellCompatibilityNoClobberModuleList": ["$desktopModuleToUse"]}
"@ | Out-File -Force $ConfigPath
$env:PSModulePath = ''
$env:PSModulePath = $null
## The desktop-edition module is listed in the no-clobber list, so we will first try loading a core-edition
## compatible version of the module before loading the remote one. The 'system32' module path will be skipped
@@ -1479,7 +1479,7 @@ Describe "WinCompat importing should check availablity of built-in modules" -Tag
$_.Exception.Message
}}
'@
$env:PSModulePath = ''
$env:PSModulePath = $null
$script = $template -f $Command
$scriptBlock = [scriptblock]::Create($script)
@@ -1507,7 +1507,7 @@ Describe "WinCompat importing should check availablity of built-in modules" -Tag
`$_.Exception.Message
}
"@
$env:PSModulePath = ''
$env:PSModulePath = $null
$scriptBlock = [scriptblock]::Create($script)
$result = & "$pwshDir\pwsh.exe" -NoProfile -NonInteractive -c $scriptBlock
$result | Should -HaveCount 2
@@ -1516,7 +1516,7 @@ Describe "WinCompat importing should check availablity of built-in modules" -Tag
}
It "When built-in modules are available but not in `$PSHOME module path, things should work" {
$env:PSModulePath = ''
$env:PSModulePath = $null
$result = & "$pwshDir\pwsh.exe" -NoProfile -NonInteractive -c @"
`$env:PSModulePath += ';$moduleDir'
Import-Module Microsoft.PowerShell.Utility -UseWindowsPowerShell -WarningAction Ignore
@@ -68,7 +68,7 @@ Describe "SxS Module Path Basic Tests" -tags "CI" {
It "validate sxs module path" -Skip:$skipNoPwsh {
$env:PSModulePath = ""
$env:PSModulePath = $null
$defaultModulePath = & $powershell -nopro -c '$env:PSModulePath'
$pathSeparator = [System.IO.Path]::PathSeparator
@@ -14,6 +14,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="8.0.0" />
<PackageReference Include="System.Formats.Asn1" Version="9.0.0-preview.6.24327.7" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
</ItemGroup>
</Project>