Move misplaced test file to tests directory - #14908
Conversation
|
Importprovider is now failing... |
Approved with failing tests
|
I suppose that test wasn't being run so it didn't show any errors before. The |
|
Looks like the file was added by Ilya (@iSazonov) in #11813. Ilya (@iSazonov) what's the right way to make these tests work? |
It's mystic how it happened :-( We should replace: 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"
}with It "Import a PowerShell provider with correct name" {
$result = & $pwsh -NoProfile -Command "Import-Module -Name $testModulePath; (Get-Item ReproModule\SamplePrv::test.txt).PSPath"
$result | Should -BeExactly "ReproModule\SamplePrv::test.txt"
} |
|
/azp run PowerShell-CI-static-analysis |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Mariano Alipi (@MarianoAlipi) Thanks for your contribution! |
|
Thank you everyone for your help during the whole process! :) |
|
🎉 Handy links: |
PR Summary
Fix #14832
Move file
src/System.Management.Automation/engine/Modules/ImportProvider.Tests.ps1totest/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1PR Context
This pull request is a simple fix to issue #14832
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).