Small typo in archive cmdlets tests (#3121)

* Small typo in archive cmdlets tests
* Add  -ErrorAction SilentlyContinue
This commit is contained in:
Ilya 2017-02-11 01:39:34 +04:00 committed by Dongbo Wang
parent 39c44b4ffc
commit aa764dd54e

View file

@ -12,9 +12,8 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" {
}
BeforeAll {
# remove the archive module forcefully, to be sure we get the correct version
if ( Get-Module Microsoft.PowerShell.Archive. ) {
Remove-Module Microsoft.PowerShell.Archive -force
}
Remove-Module Microsoft.PowerShell.Archive -Force -ErrorAction SilentlyContinue
# Version comparisons should use a System.Version rather than SemanticVersion
$PSVersion = $PSVersionTable.PSVersion -as [Version]
# Write-Progress not supported yet on Core