Skip to content

Commit

Permalink
Only run the gzip test on Linux CI
Browse files Browse the repository at this point in the history
This test fails when a MIME database isn't present, such as the
Windows CI environment or minimal environments (reported in #478).
  • Loading branch information
Wilfred committed Feb 4, 2023
1 parent cf7b927 commit 34f21c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.57.0
- run: cargo test
# This also runs tests that rely on the MIME database being
# present.
- name: Run all tests, including ignored tests
run: cargo test -- --ignored

test_linux_latest_stable:
name: Test Linux (latest stable Rust)
Expand Down
1 change: 1 addition & 0 deletions src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ mod tests {
}

#[test]
#[ignore]
fn test_gzip_is_binary() {
// Bytes for "echo "[]" | gzip -c | hexdump -C"
let bytes = vec![
Expand Down

0 comments on commit 34f21c6

Please sign in to comment.