diff --git a/test/powershell/Add-Content.Tests.ps1 b/test/powershell/Add-Content.Tests.ps1 index 69bbe5b90..326cb1bc0 100644 --- a/test/powershell/Add-Content.Tests.ps1 +++ b/test/powershell/Add-Content.Tests.ps1 @@ -31,7 +31,7 @@ Describe "Add-Content cmdlet tests" { #[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 903880)] {add-content -path $() -value "ShouldNotWorkBecausePathIsInvalid" -ea stop} | Should Throw "Cannot bind argument to parameter 'Path'" } - It "should throw 'PSNotSupportedException' when you add-content to an unsupported provider" { + It "should throw 'PSNotSupportedException' when you add-content to an unsupported provider" -Skip:($IsLinux -Or $IsOSX) { #[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 906022)] {add-content -path HKLM:\\software\\microsoft -value "ShouldNotWorkBecausePathIsUnsupported" -ea stop} | Should Throw "IContentCmdletProvider interface is not implemented" } diff --git a/test/powershell/Clear-Content.Tests.ps1 b/test/powershell/Clear-Content.Tests.ps1 index 8b6c51688..cb2fd1164 100644 --- a/test/powershell/Clear-Content.Tests.ps1 +++ b/test/powershell/Clear-Content.Tests.ps1 @@ -19,7 +19,7 @@ Describe "Clear-Content cmdlet tests" { #[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 903880)] {clear-content -path $() -ea stop} | Should Throw "Cannot bind argument to parameter 'Path'" } - It "should throw 'PSNotSupportedException' when you set-content to an unsupported provider" { + It "should throw 'PSNotSupportedException' when you set-content to an unsupported provider" -Skip:($IsLinux -Or $IsOSX) { #[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 906022)] {clear-content -path HKLM:\\software\\microsoft -ea stop} | Should Throw "IContentCmdletProvider interface is not implemented" } diff --git a/test/powershell/Get-Content.Tests.ps1 b/test/powershell/Get-Content.Tests.ps1 index 0b4839b11..e843ceb22 100644 --- a/test/powershell/Get-Content.Tests.ps1 +++ b/test/powershell/Get-Content.Tests.ps1 @@ -80,7 +80,7 @@ Describe "Get-Content" { Get-Content PATH | Should Be $expectedoutput popd } - It "should throw 'PSNotSupportedException' when you set-content to an unsupported provider" { + It "should throw 'PSNotSupportedException' when you set-content to an unsupported provider" -Skip:($IsLinux -Or $IsOSX) { #[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 906022)] {get-content -path HKLM:\\software\\microsoft -ea stop} | Should Throw "IContentCmdletProvider interface is not implemented" } diff --git a/test/powershell/Set-Content.Tests.ps1 b/test/powershell/Set-Content.Tests.ps1 index 629588a4d..761de9cee 100644 --- a/test/powershell/Set-Content.Tests.ps1 +++ b/test/powershell/Set-Content.Tests.ps1 @@ -34,7 +34,7 @@ Describe "Set-Content cmdlet tests" { #[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 903880)] {set-content -path $() -value "ShouldNotWorkBecausePathIsInvalid" -ea stop} | Should Throw "Cannot bind argument to parameter 'Path'" } - It "should throw 'PSNotSupportedException' when you set-content to an unsupported provider" { + It "should throw 'PSNotSupportedException' when you set-content to an unsupported provider" -Skip:($IsLinux -Or $IsOSX) { #[DRT][BugId(BugDatabase.WindowsOutOfBandReleases, 906022)] {set-content -path HKLM:\\software\\microsoft -value "ShouldNotWorkBecausePathIsUnsupported" -ea stop} | Should Throw "IContentCmdletProvider interface is not implemented" }