diff mbox

[V7,2/2] Add tests for sync modes 'TOP' and 'NONE'

Message ID 20130726165834.GE18446@dhcp-200-207.str.redhat.com
State New
Headers show

Commit Message

Kevin Wolf July 26, 2013, 4:58 p.m. UTC
Am 26.07.2013 um 03:09 hat Ian Main geschrieben:
> This patch adds tests for sync modes top and none.  Test for 'TOP'
> is separated out as it requires a backing file.  Also added a test
> for invalid format.
> 
> Signed-off-by: Ian Main <imain@redhat.com>

Test 055 fails for me:

$ ./check -T -nocache -qcow2 055
QEMU          -- /home/kwolf/source/qemu/tests/qemu-iotests/qemu
QEMU_IMG      -- /home/kwolf/source/qemu/tests/qemu-iotests/qemu-img
QEMU_IO       -- /home/kwolf/source/qemu/tests/qemu-iotests/qemu-io 
IMGFMT        -- qcow2 (compat=1.1)
IMGPROTO      -- file
PLATFORM      -- Linux/x86_64 dhcp-200-207 3.9.11-200.fc18.x86_64

055 11s ...     [18:48:19] [18:48:40] [failed, exit status 1] - output mismatch (see 055.out.bad)
Failures: 055
Failed 1 of 1 tests
diff mbox

Patch

--- 055.out     2013-07-26 16:43:43.573732375 +0200
+++ 055.out.bad 2013-07-26 18:48:40.825459464 +0200
@@ -1,5 +1,13 @@ 
-...............
+...F...........
+======================================================================
+FAIL: test_cancel_sync_none (__main__.TestSingleDrive)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+  File "./055", line 74, in test_cancel_sync_none
+    self.assertEqual(-1, qemu_io('-c', 'read -P0x41 0 512', target_img).find("verification failed"))
+AssertionError: -1 != 8
+
 ----------------------------------------------------------------------
 Ran 15 tests
 
-OK
+FAILED (failures=1)