mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Exclude the TimeZone/Computer/FileCatalog cmdlets for Linux. They use windows specific Win32 APIs
This commit is contained in:
1 parent
45791aa030
commit
c502b31509
7 files changed
+30
-1
No files matched your search
@@ -14,6 +14,8 @@
|
||||
[snippet] Both StandardName and DaylightName are localized according to the current user default UI language.
|
||||
#>
|
||||
|
||||
if ($IsWindows) {
|
||||
|
||||
function Assert-ListsSame
|
||||
{
|
||||
param([object[]] $expected, [object[]] $observed )
|
||||
@@ -116,3 +118,4 @@ Describe "Get-Timezone test cases" -tags 'Innerloop','RI' {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -14,6 +14,8 @@
|
||||
[snippet] Both StandardName and DaylightName are localized according to the current user default UI language.
|
||||
#>
|
||||
|
||||
if ($IsWindows) {
|
||||
|
||||
function Assert-ListsSame
|
||||
{
|
||||
param([object[]] $expected, [object[]] $observed )
|
||||
@@ -131,3 +133,5 @@ Describe "Set-Timezone test cases" -tags 'Innerloop','RI' {
|
||||
$observed.Id -eq $origTimeZoneID | Should Be $true
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,6 +3,8 @@
|
||||
# Copyright (c) Microsoft Corporation, 2016
|
||||
#
|
||||
|
||||
if ($IsWindows) {
|
||||
|
||||
$script:catalogPath = ""
|
||||
|
||||
Describe "Test suite for NewFileCatalogAndTestFileCatalogCmdlets" -Tags "Innerloop","BVT" {
|
||||
@@ -375,3 +377,5 @@ Describe "Test suite for NewFileCatalogAndTestFileCatalogCmdlets" -Tags "Innerlo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user