alexcrichton / tar-rs

Tar file reading/writing for Rust
https://docs.rs/tar
Apache License 2.0
616 stars 178 forks source link

tests: Don't assume /dev/loop0 exists #328

Closed cgwalters closed 1 month ago

cgwalters commented 1 year ago

It doesn't by default on e.g. current Fedora and RHEL systems. I suspect most people so far have been running this on Ubuntu which uses snaps which use loopback devices, but we can't rely on that.

For test coverage here, ultimately there's not really a good block device to rely on without going through a lot of special casing.

Let's just test character devices.

vrmiguel commented 11 months ago

+1 since this also does not work on Arch Linux

alexcrichton commented 1 month ago

Thanks!