mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Revert "Change PSNativePSPathResolution to not be Experimental" (#13734)
* Revert "Change `PSNativePSPathResolution` to not be Experimental (#13522)"
This reverts commit 74c743d279.
This commit is contained in:
@@ -67,6 +67,11 @@ Describe "Native Command Arguments" -tags "CI" {
|
||||
|
||||
Describe 'PSPath to native commands' {
|
||||
BeforeAll {
|
||||
$featureEnabled = $EnabledExperimentalFeatures.Contains('PSNativePSPathResolution')
|
||||
$originalDefaultParameterValues = $PSDefaultParameterValues.Clone()
|
||||
|
||||
$PSDefaultParameterValues["it:skip"] = (-not $featureEnabled)
|
||||
|
||||
if ($IsWindows) {
|
||||
$cmd = "cmd"
|
||||
$cmdArg1 = "/c"
|
||||
@@ -90,6 +95,8 @@ Describe 'PSPath to native commands' {
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
$global:PSDefaultParameterValues = $originalDefaultParameterValues
|
||||
|
||||
Remove-Item -Path "env:/test var"
|
||||
Remove-Item -Path $filePath
|
||||
Remove-PSDrive -Name $complexDriveName
|
||||
|
||||
Reference in New Issue
Block a user