Skip to content

Commit 8e0d96e

Browse files
committed
Use a shared disk for tests
1 parent 1e738dd commit 8e0d96e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/nbd_disk/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ fn run_nbd_server(listen_ip: &str) -> NBDServerProcess {
3333
.arg("--port=0")
3434
.arg(format!("--export-name={export_name}"))
3535
.arg("--read-only")
36+
.arg("--shared=100")
3637
.arg(test_disk)
3738
.spawn()
3839
.unwrap();

tests/common/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub(crate) fn run_nbd_server(listen_ip: &str) -> NBDServerProcess {
6666
.arg("--port=0")
6767
.arg(format!("--export-name={export_name}"))
6868
.arg("--read-only")
69+
.arg("--shared=100")
6970
.arg(test_disk)
7071
.spawn()
7172
.unwrap();

0 commit comments

Comments
 (0)