extractors::common::Chroot::create_block_device test is flaky
Author: apteryksCreated Aug 4, 2026Updated Aug 4, 2026
Hi,
While building the binwalk package (version 3.1.0) on GNU Guix, I encountered the following error:
test src/extractors/common.rs - extractors::common::Chroot::create_block_device (line 347) ... FAILED
test src/extractors/common.rs - extractors::common::Chroot::create_fifo (line 379) ... ok
test src/extractors/common.rs - extractors::common::Chroot::create_socket (line 404) ... ok
test src/structures.rs - structures (line 41) - compile ... ok
test src/extractors/common.rs - extractors::common::Chroot::append_to_file (line 429) ... ok
test src/extractors/common.rs - extractors::common::Chroot::make_executable (line 513) ... ok
test src/extractors/common.rs - extractors::common::Chroot::safe_path_join (line 151) ... ok
test src/structures/common.rs - structures::common::parse (line 34) ... ok
test src/extractors/common.rs - extractors::common::Chroot::new (line 92) ... ok
test src/structures/common.rs - structures::common::size (line 136) ... ok
failures:
---- src/extractors/common.rs - extractors::common::Chroot::create_block_device (line 347) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' (13897) panicked at src/extractors/common.rs:14:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
src/extractors/common.rs - extractors::common::Chroot::create_block_device (line 347)
test result: FAILED. 22 passed; 1 failed; 3 ignored; 0 measured; 6 filtered out; finished in 0.74sIf I rebuild the same package again, the test passes, so this happens only sometimes (non-deterministic).
Source: ReFirmLabs/binwalk