File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if ($null -ne $module)
16
16
# Import the built module
17
17
Import-Module " $env: PIPELINE_WORKSPACE /ModuleBuild/Microsoft.PowerShell.Archive.psd1"
18
18
19
- $pesterMinVersion = " 5.3"
19
+ $pesterMinVersion = " 5.3.0 "
20
20
$pesterMaxVersion = " 5.3.9"
21
21
22
22
# If Pester 5.3.3 is not installed, install it
Original file line number Diff line number Diff line change 76
76
$content = 7z.exe a archive.zip .azdevops
77
77
$content | Write-Verbose -Verbose
78
78
}
79
+ Get-ChildItem $(PowerShellPreviewExecutablePath) | Write-Verbose
79
80
"$(PowerShellPreviewExecutablePath) .azdevops/RunTests.ps1" | Invoke-Expression
81
+ if ("${{ parameters.vmImageName }}" -like 'macos-*')
82
+ {
83
+ "pwsh .azdevops/RunTests.ps1" | Invoke-Expression
84
+ }
80
85
displayName: Run Tests
81
86
82
87
- task : PublishTestResults@2
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ BeforeDiscovery {
63
63
) - Tag this1 {
64
64
$DestinationPath = " TestDrive:/archive2.zip"
65
65
66
+ Write-Verbose - Message " ${PWD} " - Verbose
67
+
66
68
Compress-Archive - Path $Path - DestinationPath $DestinationPath - ErrorAction SilentlyContinue - ErrorVariable error
67
69
$error.Count | Should - Be 1
68
70
$error [0 ].FullyQualifiedErrorId | Should - Be " InvalidPath,Microsoft.PowerShell.Archive.CompressArchiveCommand"
@@ -251,6 +253,11 @@ BeforeDiscovery {
251
253
$destinationPath = " TestDrive:/archive1.zip"
252
254
Compress-Archive - Path $sourcePath - DestinationPath $destinationPath
253
255
$destinationPath | Should - BeZipArchiveOnlyContaining @ (' SourceDir/' , ' SourceDir/Sample-1.txt' )
256
+
257
+ if ($IsWindows ) {
258
+ $t = Convert-Path $destinationPath
259
+ 7z l " ${t} " | Write-Verbose - Verbose
260
+ }
254
261
}
255
262
}
256
263
You can’t perform that action at this time.
0 commit comments