Generate a dummy 'Fedora' fedora.img in images directory for use by tests.
[libguestfs.git] / python / t / 050-lvcreate.py
index 98227e2..f98fe29 100644 (file)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
+import os
 import guestfs
 
-g = guestfs.guestfs()
+g = guestfs.GuestFS()
 f = open ("test.img", "w")
 f.truncate (500 * 1024 * 1024)
 f.close ()
 g.add_drive ("test.img")
 g.launch ()
-g.wait_ready ()
 g.pvcreate ("/dev/sda")
 g.vgcreate ("VG", ["/dev/sda"])
 g.lvcreate ("LV1", "VG", 200)
@@ -33,5 +33,4 @@ if (g.lvs () != ["/dev/VG/LV1", "/dev/VG/LV2"]):
 g.sync ()
 del g
 
-import os
 os.unlink ("test.img")