From 9aefc6026bd911e0b4d85a23e4b1ec0b76979b27 Mon Sep 17 00:00:00 2001 From: Mariano Alipi Date: Fri, 26 Feb 2021 02:44:17 -0600 Subject: [PATCH 1/2] Move misplaced test file to tests directory --- .../Modules/Microsoft.PowerShell.Core}/ImportProvider.Tests.ps1 | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {src/System.Management.Automation/engine/Modules => test/powershell/Modules/Microsoft.PowerShell.Core}/ImportProvider.Tests.ps1 (100%) diff --git a/src/System.Management.Automation/engine/Modules/ImportProvider.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 similarity index 100% rename from src/System.Management.Automation/engine/Modules/ImportProvider.Tests.ps1 rename to test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 From a538bf1e32f2de4141207b3c278337519ee3762e Mon Sep 17 00:00:00 2001 From: Mariano Alipi <31372978+MarianoAlipi@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:47:53 -0600 Subject: [PATCH 2/2] Fix import PowerShell provider test --- .../Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 index 1bfcb84d0ce..dba35c4ec59 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 @@ -62,7 +62,7 @@ namespace module { } It "Import a PowerShell provider with correct name" { - $result = & $pwsh -NoProfile -Command "Import-Module -Name $testModulePath; Get-Item ReproModule\SamplePrv::test.txt" - $result.PSPath | Should -BeExactly "ReproModule\SamplePrv::test.txt" + $result = & $pwsh -NoProfile -Command "Import-Module -Name $testModulePath; (Get-Item ReproModule\SamplePrv::test.txt).PSPath" + $result | Should -BeExactly "ReproModule\SamplePrv::test.txt" } }