tests: Update miscellaneous tests to use disk-create API.

Instead of calling out to qemu-img / truncate.
This commit is contained in:
Richard W.M. Jones
2014-01-28 15:06:39 +00:00
parent bd12e784e7
commit f02fddc26b
17 changed files with 45 additions and 56 deletions

View File

@@ -30,7 +30,7 @@ $VG ./guestfish -x -a test-a.img </dev/null >test-a.out 2>&1
! grep -sq 'add_drive.*format' test-a.out
rm test-a.img
qemu-img create -f qcow2 test-a.img 100M
$VG ./guestfish disk-create test-a.img qcow2 100M
$VG ./guestfish -x --format=qcow2 -a test-a.img </dev/null >test-a.out 2>&1