Skip to content

Commit

Permalink
Merge pull request #62 from theohbrothers/enhancement/tests-make-test…
Browse files Browse the repository at this point in the history
…s-compatible-with-busybox-gzip

Enhancement (tests): Make tests compatible with busybox `gzip`
  • Loading branch information
leojonathanoh authored Oct 17, 2023
2 parents a3150ce + 71a4dda commit 39a72cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Log-Rotate/Log-Rotate.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ Describe 'Log-Rotate' -Tag 'Integration' {
"$logFile" {
compress
compresscmd gzip
compressoptions -1 -S .foo # Specify a suffix for gzip
compressext .foo
compressoptions -1
# compressoptions -1 -S .foo # Specify a suffix for gzip (but not compatible with busybox gzip)
compressext .gz
}
"@
Init
Expand All @@ -235,7 +236,7 @@ Describe 'Log-Rotate' -Tag 'Integration' {
$rotatedLogItems[0] | Should -BeOfType [System.IO.FileSystemInfo]

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

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

0 comments on commit 39a72cc

Please sign in to comment.