Skip to content

Commit 39a72cc

Browse files
Merge pull request #62 from theohbrothers/enhancement/tests-make-tests-compatible-with-busybox-gzip
Enhancement (tests): Make tests compatible with busybox `gzip`
2 parents a3150ce + 71a4dda commit 39a72cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Log-Rotate/Log-Rotate.Integration.Tests.ps1

+4-3
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ Describe 'Log-Rotate' -Tag 'Integration' {
217217
"$logFile" {
218218
compress
219219
compresscmd gzip
220-
compressoptions -1 -S .foo # Specify a suffix for gzip
221-
compressext .foo
220+
compressoptions -1
221+
# compressoptions -1 -S .foo # Specify a suffix for gzip (but not compatible with busybox gzip)
222+
compressext .gz
222223
}
223224
"@
224225
Init
@@ -235,7 +236,7 @@ Describe 'Log-Rotate' -Tag 'Integration' {
235236
$rotatedLogItems[0] | Should -BeOfType [System.IO.FileSystemInfo]
236237

237238
# Assert that the rotated log file should be named
238-
$rotatedLogItems[0].Name | Should -Be "$( Split-Path $logFile -Leaf ).1.foo"
239+
$rotatedLogItems[0].Name | Should -Be "$( Split-Path $logFile -Leaf ).1.gz"
239240
}
240241

241242
It "Option 'copy': rotates a log file as a copy" {

0 commit comments

Comments
 (0)