kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

When running tests with --test-threads=1 there are failures #4

Closed griff closed 3 years ago

griff commented 3 years ago

When packaging this project for NixOS the tests are run on a machine with only one hardware thread and so it has the same effect as running cargo test -- --test-threads=1 which means that all tests are run in series but this causes some tests to fail.

kornelski commented 3 years ago

Thanks for the report. It turns out tests used thread-local variables.

griff commented 3 years ago

Would it be possible to get a minor release with these fixes so they can be included in the comming 21.11 release of NixOS?