Skip to content

Commit 4da79e1

Browse files
committed
updated CI 9
1 parent c9a6b87 commit 4da79e1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.azdevops/RunTests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ if ($null -ne $module)
1616
# Import the built module
1717
Import-Module "$env:PIPELINE_WORKSPACE/ModuleBuild/Microsoft.PowerShell.Archive.psd1"
1818

19+
Get-ChildItem "$env:PIPELINE_WORKSPACE/ModuleBuild" | Write-Verbose -Verbose
20+
1921
$pesterMinVersion = "5.3.0"
2022
$pesterMaxVersion = "5.3.9"
2123

Tests/Compress-Archive.Tests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,13 @@ BeforeDiscovery {
252252
$sourcePath = "TestDrive:/SourceDir"
253253
$destinationPath = "TestDrive:/archive1.zip"
254254
Compress-Archive -Path $sourcePath -DestinationPath $destinationPath
255-
$destinationPath | Should -BeZipArchiveOnlyContaining @('SourceDir/', 'SourceDir/Sample-1.txt')
256-
257255
if ($IsWindows) {
258256
$t = Convert-Path $destinationPath
259257
7z l "${t}" | Write-Verbose -Verbose
260258
}
259+
$destinationPath | Should -BeZipArchiveOnlyContaining @('SourceDir/', 'SourceDir/Sample-1.txt')
260+
261+
261262
}
262263
}
263264

0 commit comments

Comments
 (0)