Skip to content

Commit 18987ba

Browse files
committed
Set dir permissions to 775 in test data
1 parent b6e0ea4 commit 18987ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/Compress-Archive.Tests.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ BeforeDiscovery {
317317
}
318318

319319
chmod -R u+rwx "$sourcePathAbsolute"
320+
finx $sourcePathAbsolute -type d -print0 | xargs -0 chmod 775
320321
Compress-Archive -Path $sourcePath -DestinationPath $destinationPath
321322
$destinationPath | Should -BeZipArchiveOnlyContaining @('SourceDir/', 'SourceDir/ChildDir-1/', 'SourceDir/ChildDir-2/', 'SourceDir/ChildEmptyDir/', 'SourceDir/Sample-1.txt', 'SourceDir/ChildDir-1/Sample-2.txt', 'SourceDir/ChildDir-2/Sample-3.txt')
322323
$destinationPath | Should -BeZipArchiveWithUnixPermissions $tempUnzipPath $ExpectedDirectoryPermissions $ExpectedFilePermissions

0 commit comments

Comments
 (0)