Skip to content

Commit cceeb6a

Browse files
committed
Use a shared disk for tests
1 parent b6bf647 commit cceeb6a

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
@@ -67,6 +67,7 @@ pub(crate) fn run_nbd_server(listen_ip: &str) -> NBDServerProcess {
6767
.arg("--port=0")
6868
.arg(format!("--export-name={export_name}"))
6969
.arg("--read-only")
70+
.arg("--shared=100")
7071
.arg(test_disk)
7172
.spawn()
7273
.unwrap();

0 commit comments

Comments
 (0)