Skip to content

Commit 4b0bf74

Browse files
committed
Make sure the tests run when /tmp is not odirect capable
Like on my Fedora box. Signed-off-by: Jon Ludlam <[email protected]>
1 parent d0dc195 commit 4b0bf74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test.local_allocator.conf.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(
22
(socket /tmp/@HOST@-socket)
33
(allocation_quantum 16)
4-
(localJournal /tmp/@HOST@-localJournal)
4+
(localJournal @HOST@-localJournal)
55
(devices (@BIGDISK@))
66
(toLVM @HOST@-toLVM)
77
(fromLVM @HOST@-fromLVM)

test/common.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ let tib = Int64.(gib * kib)
218218
module Client = Xenvm_client.Client
219219

220220
let with_temp_file fn =
221-
let filename = "/tmp/vg" in
221+
let filename = Filename.concat (Unix.getcwd ()) "vg" in
222222
let f = Unix.openfile filename [Unix.O_CREAT; Unix.O_RDWR; Unix.O_TRUNC] 0o644 in
223223
(* approximately 10000 4MiB extents for volumes, 100MiB for metadata and
224224
overhead *)

0 commit comments

Comments
 (0)