@@ -41,7 +41,7 @@ let vgs_offline =
4141 (fun () ->
4242 with_temp_file (fun filename ->
4343 xenvm [ " vgcreate" ; vg; filename ] |> ignore_string;
44- mkdir_rec " /etc /xenvm.d" 0o0644 ;
44+ mkdir_rec " /tmp /xenvm.d" 0o0755 ;
4545 xenvm [ " set-vg-info" ; " --pvpath" ; filename; " -S" ; " /tmp/xenvmd" ; vg; " --local-allocator-path" ; " /tmp/xenvm-local-allocator" ; " --uri" ; " file://local/services/xenvmd/" ^ vg ] |> ignore_string;
4646 xenvm [ " vgs" ; vg ] |> ignore_string
4747 )
@@ -118,13 +118,17 @@ let lvchange_n =
118118 let vg_metadata, lv_metadata = Lwt_main. run (Client. get_lv " test" ) in
119119 let name = Mapper. name_of vg_metadata lv_metadata in
120120 xenvm [ " lvchange" ; " -ay" ; " /dev/" ^ vg ^ " /test" ] |> ignore_string;
121+ if not ! Common. use_mock then begin (* FIXME: #99 *)
121122 assert_equal ~printer: string_of_bool true (file_exists (dev_path_of " test" ));
122123 assert_equal ~printer: string_of_bool true (file_exists (mapper_path_of " test" ));
123124 assert_equal ~printer: string_of_bool true (dm_exists name);
125+ end ;
124126 xenvm [ " lvchange" ; " -an" ; " /dev/" ^ vg ^ " /test" ] |> ignore_string;
127+ if not ! Common. use_mock then begin (* FIXME: #99 *)
125128 assert_equal ~printer: string_of_bool false (file_exists (dev_path_of" test" ));
126129 assert_equal ~printer: string_of_bool false (file_exists (mapper_path_of" test" ));
127130 assert_equal ~printer: string_of_bool false (dm_exists name);
131+ end ;
128132 xenvm [ " lvremove" ; vg ^ " /test" ] |> ignore_string
129133
130134let parse_int x =
@@ -155,11 +159,11 @@ let xenvmd_suite = "Commands which require xenvmd" >::: [
155159]
156160
157161let _ =
162+ mkdir_rec " /tmp/xenvm.d" 0o0755 ;
158163 run_test_tt_main no_xenvmd_suite |> ignore;
159164 with_temp_file (fun filename' ->
160165 with_loop_device filename' (fun loop ->
161166 xenvm [ " vgcreate" ; vg; loop ] |> ignore_string;
162- mkdir_rec " /etc/xenvm.d" 0o0644 ;
163167 xenvm [ " set-vg-info" ; " --pvpath" ; loop; " -S" ; " /tmp/xenvmd" ; vg; " --local-allocator-path" ; " /tmp/xenvm-local-allocator" ; " --uri" ; " file://local/services/xenvmd/" ^ vg ] |> ignore_string;
164168 file_of_string " test.xenvmd.conf" (" ( (listenPort ()) (listenPath (Some \" /tmp/xenvmd\" )) (host_allocation_quantum 128) (host_low_water_mark 8) (vg " ^ vg^ " ) (devices (" ^ loop^ " )))" );
165169 xenvmd [ " --config" ; " ./test.xenvmd.conf" ; " --daemon" ] |> ignore_string;
0 commit comments