mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
This commit is contained in:
@@ -167,7 +167,7 @@ Describe "Default enablement of Experimental Features" -Tags CI {
|
||||
It "On stable builds, Experimental Features are not enabled" -Skip:($isPreview) {
|
||||
foreach ($expFeature in Get-ExperimentalFeature)
|
||||
{
|
||||
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net7.0\win81-x64\publish)
|
||||
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net7.0\win7-x64\publish)
|
||||
# is launched from another pwsh (with $PSHOME like C:\program files\powershell\7)
|
||||
# resulting in combined PSModulePath which is used by Get-ExperimentalFeature to enum module-scoped exp.features from both pwsh locations.
|
||||
# So we need to exclude parent's modules' exp.features from verification using filtering on $PSHOME.
|
||||
@@ -184,7 +184,7 @@ Describe "Default enablement of Experimental Features" -Tags CI {
|
||||
|
||||
foreach ($expFeature in Get-ExperimentalFeature)
|
||||
{
|
||||
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net7.0\win81-x64\publish)
|
||||
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net7.0\win7-x64\publish)
|
||||
# is launched from another pwsh (with $PSHOME like C:\program files\powershell\7)
|
||||
# resulting in combined PSModulePath which is used by Get-ExperimentalFeature to enum module-scoped exp.features from both pwsh locations.
|
||||
# So we need to exclude parent's modules' exp.features from verification using filtering on $PSHOME.
|
||||
|
||||
Reference in New Issue
Block a user