mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-27 23:48:55 +00:00
Tests were run in a series before the previous commit because of a testing failure (#232), and masked a bug. This is not necessary anymore since the bug was fixed in the previous commit. Instead of reverting to running the tests without the #[serial] attribute, make every test self-contained by using unique temp directories in each test run. Test files that refer to sockets need to be unique because they risk sharing filenames with other tests after refactoring. Since these tests create/use/free resources, they should take care not to litter /tmp/ and not share any file with other tests. This commit uses a unique temp dir as location of test run files instead of `/tmp/`. It adds a new dev-dependency, `tempfile`. Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> |
||
|---|---|---|
| .. | ||
| gpio | ||
| i2c | ||
| rng | ||
| scsi | ||
| vsock | ||