~ireas/nitrokey-rs-dev

[nitrokey-rs] Tests failing

Details
Message ID
<581c5341-88a7-0569-1dee-4343619e2374@posteo.net>
DKIM signature
missing
Download raw message
Hi,

When I run the nitrokey-rs test suite I see the following test failures:

failures:

---- encrypted_volume stdout ----
thread 'encrypted_volume' panicked at 'assertion failed: `(left == right)`
   left: `1`,
  right: `2`', tests/device.rs:464:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- hidden_volume stdout ----
thread 'hidden_volume' panicked at 'assertion failed: `(left == right)`
   left: `1`,
  right: `2`', tests/device.rs:483:5

---- lock stdout ----
thread 'lock' panicked at 'assertion failed: `(left == right)`
   left: `1`,
  right: `2`', tests/device.rs:519:5

I think that's because lsblk reports my Nitrokey Storage twice because
it has two partitions on it. I tried to fix the code by remembering the
existing number of block devices, but it seems as if even if I open the
encrypted volume, the output of lsblk does not change at all (while a
new block device actually appears).

Is this something you can confirm?

Daniel
Reply to thread Export thread (mbox)