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:
Steve Lee
2020-10-03 21:20:24 +05:00
committed by GitHub
parent badb4c3fb1
commit fc8ca61b3d
3 changed files with 57 additions and 36 deletions
@@ -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