tests: Make the test_virtio_pmem test use a temporary file

Rather than using a raw OS disk image. This will be useful when the test
is extended to doing I/O on the image.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-03-19 10:48:17 +00:00
committed by Sebastien Boeuf
parent f7197e8415
commit 70986022d8
3 changed files with 8 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -168,6 +168,7 @@ dependencies = [
"serde_json 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)",
"ssh2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
"tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"vhost 0.1.0 (git+https://github.com/cloud-hypervisor/vhost?branch=dragonball)",
"vhost_user_backend 0.1.0",
"vhost_user_block 0.1.0",