File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed
test/powershell/engine/ResourceValidation Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ $assemblyName = "Microsoft.Management.Infrastructure.CimCmdlets"
6
6
# entries in the csproj for the assembly
7
7
$excludeList = @ ()
8
8
# load the module since it isn't there by default
9
- import-module CimCmdlets
9
+ if ( $IsWindows )
10
+ {
11
+ import-module CimCmdlets
12
+ }
10
13
11
14
# run the tests
12
15
Test-ResourceStrings - AssemblyName $AssemblyName - ExcludeList $excludeList
Original file line number Diff line number Diff line change @@ -6,17 +6,9 @@ $assemblyName = "Microsoft.WSMan.Management"
6
6
# entries in the csproj for the assembly
7
7
$excludeList = @ ()
8
8
# load the module since it isn't there by default
9
- import-module Microsoft.WSMan.Management
10
-
11
-
12
- try {
13
- if ( ! $IsWindows )
14
- {
15
- $PSDefaultParameterValues [" it:skip" ] = $true
16
- }
17
- # run the tests
18
- Test-ResourceStrings - AssemblyName $AssemblyName - ExcludeList $excludeList
19
- }
20
- finally {
21
- $PSDefaultParameterValues.Remove (" it:skip" )
9
+ if ( $IsWindows ) {
10
+ import-module Microsoft.WSMan.Management
22
11
}
12
+
13
+ # run the tests
14
+ Test-ResourceStrings - AssemblyName $AssemblyName - ExcludeList $excludeList
You can’t perform that action at this time.
0 commit comments