Use blkdebug to make test deterministic
v5 cover Use blkdebug to make test deterministic
This adds "remove_break" command to block, which removes a break point defined with "break". It is used in iotests.py to pause and resume drive in block job cases to make the test deterministic.
v5: Addressing Max's comments (thanks for reviewing)
[02] Resume all the requests.
[03] Fix event="" case. Change default value to None. Change resume to bool.
[04] Change resume to bool
v4: [01] Added.
[03] Add common method pair "pause_drive" and "resume_drive".
[04] Also fix 040, 055.
Fam Zheng (4):
qemu-iotests: Drop local version of cancel_and_wait from 040
blkdebug: add "remove_break" command
qemu-iotest: Add pause_drive and resume_drive methods
qemu-iotests: Make test case 030, 040 and 055 deterministic
block.c | 13 +++++++++++++ block/blkdebug.c | 27 +++++++++++++++++++++++++++ include/block/block.h | 1 + include/block/block_int.h | 2 ++ qemu-io-cmds.c | 22 ++++++++++++++++++++++ tests/qemu-iotests/030 | 16 +++++++++++----- tests/qemu-iotests/040 | 19 +++---------------- tests/qemu-iotests/055 | 15 +++++++++++---- tests/qemu-iotests/iotests.py | 18 +++++++++++++++++- 9 files changed, 107 insertions(+), 26 deletions(-)
Signature · 1 line
1.8.4.2
PATCH v5 1/4 qemu-iotests: Drop local version of cancel_and_wait from 040
iotests.py already has one.
--- tests/qemu-iotests/040 | 15 --------------- 1 file changed, 15 deletions(-)
tests/qemu-iotests/040 +0 -15
@@ -39,21 +39,6 @@ class ImageCommitTestCase(iotests.QMPTestCase): result = self.vm.qmp('query-block-jobs') self.assert_qmp(result, 'return', []) - def cancel_and_wait(self, drive='drive0'): - '''Cancel a block job and wait for it to finish''' - result = self.vm.qmp('block-job-cancel', device=drive) - self.assert_qmp(result, 'return', {}) - - cancelled = False - while not cancelled: - for event in self.vm.get_qmp_events(wait=True): - if event['event'] == 'BLOCK_JOB_CANCELLED': - self.assert_qmp(event, 'data/type', 'commit') - self.assert_qmp(event, 'data/device', drive) - cancelled = True - - self.assert_no_active_commit() - class TestSingleDrive(ImageCommitTestCase): image_len = 1 * 1024 * 1024 test_len = 1 * 1024 * 256
Signature · 1 line
1.8.4.2
PATCH v5 2/4 blkdebug: add "remove_break" command
In reply to Fam ZhengThis adds "remove_break" command which is the reverse of blkdebug command "break": it removes all breakpoints with given tag and resumes all the requests.
--- block.c | 13 +++++++++++++ block/blkdebug.c | 27 +++++++++++++++++++++++++++ include/block/block.h | 1 + include/block/block_int.h | 2 ++ qemu-io-cmds.c | 22 ++++++++++++++++++++++ 5 files changed, 65 insertions(+)
block.c +13 -0
@@ -3412,6 +3412,19 @@ int bdrv_debug_breakpoint(BlockDriverState *bs, const char *event,return -ENOTSUP ; } +int bdrv_debug_remove_breakpoint (BlockDriverState *bs,const char *tag) +{ +while (bs && bs->drv && !bs->drv->bdrv_debug_remove_breakpoint) { + bs = bs->file; + } + +if (bs && bs->drv && bs->drv->bdrv_debug_remove_breakpoint) { +return bs->drv->bdrv_debug_remove_breakpoint (bs, tag); + } + +return -ENOTSUP ; +} +int bdrv_debug_resume (BlockDriverState *bs,const char *tag) {while (bs && bs->drv && !bs->drv->bdrv_debug_resume) {
block/blkdebug.c +27 -0
@@ -605,6 +605,31 @@ static int blkdebug_debug_resume(BlockDriverState *bs, const char *tag)return -ENOENT ; } +static int blkdebug_debug_remove_breakpoint (BlockDriverState *bs, +const char *tag) +{ +BDRVBlkdebugState *s = bs->opaque; +BlkdebugSuspendedReq *r; +BlkdebugRule *rule, *next; +int i, ret = -ENOENT ; + +for (i =0 ; i <BLKDBG_EVENT_MAX ; i++) { + QLIST_FOREACH_SAFE(rule, &s->rules[i], next, next) { +if (rule->action ==ACTION_SUSPEND && + !strcmp (rule->options.suspend.tag, tag)) { +remove_rule (rule); + ret =0 ; + } + } + } + QLIST_FOREACH(r, &s->suspended_reqs, next) { +if (!strcmp (r->tag, tag)) { +qemu_coroutine_enter (r->co,NULL ); + ret =0 ; + } + } +return ret; +}static bool blkdebug_debug_is_suspended (BlockDriverState *bs,const char *tag) {
@@ -639,6 +664,8 @@ static BlockDriver bdrv_blkdebug = { .bdrv_debug_event = blkdebug_debug_event, .bdrv_debug_breakpoint = blkdebug_debug_breakpoint, + .bdrv_debug_remove_breakpoint + = blkdebug_debug_remove_breakpoint, .bdrv_debug_resume = blkdebug_debug_resume, .bdrv_debug_is_suspended = blkdebug_debug_is_suspended, };
include/block/block.h +1 -0
@@ -484,6 +484,7 @@ void bdrv_debug_event(BlockDriverState *bs, BlkDebugEvent event);int bdrv_debug_breakpoint (BlockDriverState *bs,const char *event,const char *tag); +int bdrv_debug_remove_breakpoint (BlockDriverState *bs,const char *tag);int bdrv_debug_resume (BlockDriverState *bs,const char *tag);bool bdrv_debug_is_suspended (BlockDriverState *bs,const char *tag);
include/block/block_int.h +2 -0
@@ -218,6 +218,8 @@ struct BlockDriver {/* TODO Better pass a option string/QDict/QemuOpts to add any rule? */ int (*bdrv_debug_breakpoint)(BlockDriverState *bs,const char *event,const char *tag); +int (*bdrv_debug_remove_breakpoint)(BlockDriverState *bs, +const char *tag);int (*bdrv_debug_resume)(BlockDriverState *bs,const char *tag);bool (*bdrv_debug_is_suspended)(BlockDriverState *bs,const char *tag);
qemu-io-cmds.c +22 -0
@@ -1956,6 +1956,18 @@ static int break_f(BlockDriverState *bs, int argc, char **argv)return 0 ; } +static int remove_break_f (BlockDriverState *bs,int argc,char **argv) +{ +int ret; + + ret =bdrv_debug_remove_breakpoint (bs, argv[1 ]); +if (ret <0 ) { +printf ("Could not remove breakpoint %s: %s\n" , argv[1 ],strerror (-ret)); + } + +return 0 ; +} +static const cmdinfo_t break_cmd = { .name ="break" , .argmin =2 ,
@@ -1966,6 +1978,15 @@ static const cmdinfo_t break_cmd = { "request as tag", }; +static const cmdinfo_t remove_break_cmd = { + .name ="remove_break" , + .argmin =1 , + .argmax =1 , + .cfunc = remove_break_f, + .args ="tag" , + .oneline ="remove a breakpoint by tag" , +}; +static int resume_f (BlockDriverState *bs,int argc,char **argv) {int ret;
@@ -2126,6 +2147,7 @@ static void __attribute((constructor)) init_qemuio_commands(void)qemuio_add_command (&alloc_cmd);qemuio_add_command (&map_cmd);qemuio_add_command (&break_cmd); +qemuio_add_command (&remove_break_cmd);qemuio_add_command (&resume_cmd);qemuio_add_command (&wait_break_cmd);qemuio_add_command (&abort_cmd);
Signature · 1 line
1.8.4.2
PATCH v5 3/4 qemu-iotest: Add pause_drive and resume_drive methods
In reply to Fam ZhengThey wrap blkdebug "break" and "remove_break".
Add optional argument "resume" to cancel_and_wait().
--- tests/qemu-iotests/iotests.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
tests/qemu-iotests/iotests.py +17 -1
@@ -107,6 +107,19 @@ class VM(object): self._num_drives += 1 return self + def pause_drive(self, drive, event=None): + '''Pause drive r/w operations''' + if not event: + self.pause_drive(drive, "read_aio") + self.pause_drive(drive, "write_aio") + return + self.qmp('human-monitor-command', + command_line='qemu-io %s "break %s bp_%s"' % (drive, event, drive)) + + def resume_drive(self, drive): + self.qmp('human-monitor-command', + command_line='qemu-io %s "remove_break bp_%s"' % (drive, drive)) + def hmp_qemu_io(self, drive, cmd): '''Write to a given drive using an HMP command''' return self.qmp('human-monitor-command',
@@ -222,11 +235,14 @@ class QMPTestCase(unittest.TestCase): result = self.vm.qmp('query-block-jobs') self.assert_qmp(result, 'return', []) - def cancel_and_wait(self, drive='drive0', force=False): + def cancel_and_wait(self, drive='drive0', force=False, resume=False): '''Cancel a block job and wait for it to finish, returning the event''' result = self.vm.qmp('block-job-cancel', device=drive, force=force) self.assert_qmp(result, 'return', {}) + if resume: + self.vm.resume_drive(drive) + cancelled = False result = None while not cancelled:
Signature · 1 line
1.8.4.2
PATCH v5 4/4 qemu-iotests: Make test case 030, 040 and 055 deterministic
In reply to Fam ZhengPause the drive and start the block job, so we won't miss the block job.
--- tests/qemu-iotests/030 | 16 +++++++++++----- tests/qemu-iotests/040 | 4 +++- tests/qemu-iotests/055 | 15 +++++++++++---- 3 files changed, 25 insertions(+), 10 deletions(-)
tests/qemu-iotests/030 +11 -5
@@ -34,6 +34,7 @@ class TestSingleDrive(iotests.QMPTestCase): iotests.create_image(backing_img, TestSingleDrive.image_len) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % backing_img, mid_img) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % mid_img, test_img) + qemu_io('-c', 'write -P 0x1 0 512', backing_img) self.vm = iotests.VM().add_drive(test_img) self.vm.launch()
@@ -69,6 +70,7 @@ class TestSingleDrive(iotests.QMPTestCase): def test_stream_pause(self): self.assert_no_active_block_jobs() + self.vm.pause_drive('drive0') result = self.vm.qmp('block-stream', device='drive0') self.assert_qmp(result, 'return', {})
@@ -86,6 +88,7 @@ class TestSingleDrive(iotests.QMPTestCase): result = self.vm.qmp('block-job-resume', device='drive0') self.assert_qmp(result, 'return', {}) + self.vm.resume_drive('drive0') completed = False while not completed: for event in self.vm.get_qmp_events(wait=True):
@@ -391,7 +394,7 @@ class TestStreamStop(iotests.QMPTestCase): qemu_io('-c', 'write -P 0x1 0 32M', backing_img) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % backing_img, test_img) qemu_io('-c', 'write -P 0x1 32M 32M', test_img) - self.vm = iotests.VM().add_drive(test_img) + self.vm = iotests.VM().add_drive("blkdebug::" + test_img) self.vm.launch() def tearDown(self):
@@ -402,6 +405,7 @@ class TestStreamStop(iotests.QMPTestCase): def test_stream_stop(self): self.assert_no_active_block_jobs() + self.vm.pause_drive('drive0') result = self.vm.qmp('block-stream', device='drive0') self.assert_qmp(result, 'return', {})
@@ -409,7 +413,7 @@ class TestStreamStop(iotests.QMPTestCase): events = self.vm.get_qmp_events(wait=False) self.assertEqual(events, [], 'unexpected QMP event: %s' % events) - self.cancel_and_wait() + self.cancel_and_wait(resume=True) class TestSetSpeed(iotests.QMPTestCase): image_len = 80 * 1024 * 1024 # MB
@@ -419,7 +423,7 @@ class TestSetSpeed(iotests.QMPTestCase): qemu_io('-c', 'write -P 0x1 0 32M', backing_img) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % backing_img, test_img) qemu_io('-c', 'write -P 0x1 32M 32M', test_img) - self.vm = iotests.VM().add_drive(test_img) + self.vm = iotests.VM().add_drive('blkdebug::' + test_img) self.vm.launch() def tearDown(self):
@@ -453,6 +457,7 @@ class TestSetSpeed(iotests.QMPTestCase): def test_set_speed(self): self.assert_no_active_block_jobs() + self.vm.pause_drive('drive0') result = self.vm.qmp('block-stream', device='drive0') self.assert_qmp(result, 'return', {})
@@ -469,7 +474,8 @@ class TestSetSpeed(iotests.QMPTestCase): self.assert_qmp(result, 'return[0]/device', 'drive0') self.assert_qmp(result, 'return[0]/speed', 8 * 1024 * 1024) - self.cancel_and_wait() + self.cancel_and_wait(resume=True) + self.vm.pause_drive('drive0') # Check setting speed in block-stream works result = self.vm.qmp('block-stream', device='drive0', speed=4 * 1024 * 1024)
@@ -479,7 +485,7 @@ class TestSetSpeed(iotests.QMPTestCase): self.assert_qmp(result, 'return[0]/device', 'drive0') self.assert_qmp(result, 'return[0]/speed', 4 * 1024 * 1024) - self.cancel_and_wait() + self.cancel_and_wait(resume=True) def test_set_speed_invalid(self): self.assert_no_active_block_jobs()
tests/qemu-iotests/040 +3 -1
@@ -228,6 +228,7 @@ class TestSetSpeed(ImageCommitTestCase): qemu_img('create', backing_img, str(TestSetSpeed.image_len)) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % backing_img, mid_img) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % mid_img, test_img) + qemu_io('-c', 'write -P 0x1 0 512', test_img) self.vm = iotests.VM().add_drive(test_img) self.vm.launch()
@@ -240,6 +241,7 @@ class TestSetSpeed(ImageCommitTestCase): def test_set_speed(self): self.assert_no_active_commit() + self.vm.pause_drive('drive0') result = self.vm.qmp('block-commit', device='drive0', top=mid_img, speed=1024 * 1024) self.assert_qmp(result, 'return', {})
@@ -248,7 +250,7 @@ class TestSetSpeed(ImageCommitTestCase): self.assert_qmp(result, 'return[0]/device', 'drive0') self.assert_qmp(result, 'return[0]/speed', 1024 * 1024) - self.cancel_and_wait() + self.cancel_and_wait(resume=True) if __name__ == '__main__':
tests/qemu-iotests/055 +11 -4
@@ -63,6 +63,7 @@ class TestSingleDrive(iotests.QMPTestCase): def test_pause(self): self.assert_no_active_block_jobs() + self.vm.pause_drive('drive0') result = self.vm.qmp('drive-backup', device='drive0', target=target_img, sync='full') self.assert_qmp(result, 'return', {})
@@ -70,7 +71,7 @@ class TestSingleDrive(iotests.QMPTestCase): result = self.vm.qmp('block-job-pause', device='drive0') self.assert_qmp(result, 'return', {}) - time.sleep(1) + self.vm.resume_drive('drive0') result = self.vm.qmp('query-block-jobs') offset = self.dictpath(result, 'return[0]/offset')
@@ -113,6 +114,7 @@ class TestSetSpeed(iotests.QMPTestCase): def setUp(self): qemu_img('create', '-f', iotests.imgfmt, test_img, str(TestSetSpeed.image_len)) + qemu_io('-c', 'write -P1 0 512', test_img) self.vm = iotests.VM().add_drive(test_img) self.vm.launch()
@@ -124,6 +126,7 @@ class TestSetSpeed(iotests.QMPTestCase): def test_set_speed(self): self.assert_no_active_block_jobs() + self.vm.pause_drive('drive0') result = self.vm.qmp('drive-backup', device='drive0', target=target_img, sync='full') self.assert_qmp(result, 'return', {})
@@ -141,10 +144,11 @@ class TestSetSpeed(iotests.QMPTestCase): self.assert_qmp(result, 'return[0]/device', 'drive0') self.assert_qmp(result, 'return[0]/speed', 8 * 1024 * 1024) - event = self.cancel_and_wait() + event = self.cancel_and_wait(resume=True) self.assert_qmp(event, 'data/type', 'backup') # Check setting speed in drive-backup works + self.vm.pause_drive('drive0') result = self.vm.qmp('drive-backup', device='drive0', target=target_img, sync='full', speed=4*1024*1024) self.assert_qmp(result, 'return', {})
@@ -153,7 +157,7 @@ class TestSetSpeed(iotests.QMPTestCase): self.assert_qmp(result, 'return[0]/device', 'drive0') self.assert_qmp(result, 'return[0]/speed', 4 * 1024 * 1024) - event = self.cancel_and_wait() + event = self.cancel_and_wait(resume=True) self.assert_qmp(event, 'data/type', 'backup') def test_set_speed_invalid(self):
@@ -165,6 +169,7 @@ class TestSetSpeed(iotests.QMPTestCase): self.assert_no_active_block_jobs() + self.vm.pause_drive('drive0') result = self.vm.qmp('drive-backup', device='drive0', target=target_img, sync='full') self.assert_qmp(result, 'return', {})
@@ -172,7 +177,7 @@ class TestSetSpeed(iotests.QMPTestCase): result = self.vm.qmp('block-job-set-speed', device='drive0', speed=-1) self.assert_qmp(result, 'error/class', 'GenericError') - event = self.cancel_and_wait() + event = self.cancel_and_wait(resume=True) self.assert_qmp(event, 'data/type', 'backup') class TestSingleTransaction(iotests.QMPTestCase):
@@ -214,6 +219,7 @@ class TestSingleTransaction(iotests.QMPTestCase): def test_pause(self): self.assert_no_active_block_jobs() + self.vm.pause_drive('drive0') result = self.vm.qmp('transaction', actions=[{ 'type': 'drive-backup', 'data': { 'device': 'drive0',
@@ -226,6 +232,7 @@ class TestSingleTransaction(iotests.QMPTestCase): result = self.vm.qmp('block-job-pause', device='drive0') self.assert_qmp(result, 'return', {}) + self.vm.resume_drive('drive0') time.sleep(1) result = self.vm.qmp('query-block-jobs') offset = self.dictpath(result, 'return[0]/offset')
Signature · 1 line
1.8.4.2
Quoted 20 lines · Fam Zheng
This adds "
remove_break" command to block, which removes a break point defined with "break". It is used iniotests.pyto pause and resume drive in block job cases to make the test deterministic.v5: Addressing Max's comments (thanks for reviewing)
[02] Resume all the requests.
[03] Fix event="" case. Change default value to None. Change resume to bool.
[04] Change resume to boolv4: [01] Added.
[03] Add common method pair "pause_drive" and "resume_drive".
[04] Also fix 040, 055.Fam Zheng (4):
qemu-iotests: Drop local version ofcancel_and_waitfrom 040
blkdebug: add "remove_break" command
qemu-iotest: Addpause_driveandresume_drivemethods
qemu-iotests: Make test case 030, 040 and 055 deterministic
Quoted 10 lines
block.c | 13 +++++++++++++ block/blkdebug.c | 27 +++++++++++++++++++++++++++ include/block/block.h | 1 + include/block/block_int.h | 2 ++ qemu-io-cmds.c | 22 ++++++++++++++++++++++ tests/qemu-iotests/030 | 16 +++++++++++----- tests/qemu-iotests/040 | 19 +++---------------- tests/qemu-iotests/055 | 15 +++++++++++---- tests/qemu-iotests/iotests.py | 18 +++++++++++++++++- 9 files changed, 107 insertions(+), 26 deletions(-)
I get this failure after applying the patches onto my block-next tree:
$ ./check -qcow2 055 QEMU -- /home/stefanha/qemu/tests/qemu-iotests/qemu QEMU_IMG -- /home/stefanha/qemu/tests/qemu-iotests/qemu-img QEMU_IO -- /home/stefanha/qemu/tests/qemu-iotests/qemu-io IMGFMT -- qcow2 (compat=1.1) IMGPROTO -- file PLATFORM -- Linux/x86_64 stefanha-thinkpad 3.11.8-300.fc20.x86_64 SOCKET_SCM_HELPER --
055 9s ... [failed, exit status 1] - output mismatch (see 055.out.bad)
055.out.bad renamed from 055.out +12 -2
@@ -1,5 +1,15 @@ -.............. +.......F...... +====================================================================== +FAIL: test_pause (__main__.TestSingleDrive) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "./055", line 80, in test_pause + self.assert_qmp(result, 'return[0]/offset', offset) + File "/home/stefanha/qemu/tests/qemu-iotests/iotests.py", line 232, in assert_qmp + self.assertEqual(result, value, 'values not equal "%s" and "%s"' % (str(result), str(value))) +AssertionError: values not equal "65536" and "0" + ---------------------------------------------------------------------- Ran 14 tests -OK +FAILED (failures=1)
Failures: 055
Failed 1 of 1 tests
Quoted 32 lines · Stefan Hajnoczi
Quoted 20 lines · Fam Zheng
This adds "
remove_break" command to block, which removes a break point defined with "break". It is used iniotests.pyto pause and resume drive in block job cases to make the test deterministic.v5: Addressing Max's comments (thanks for reviewing)
[02] Resume all the requests.
[03] Fix event="" case. Change default value to None. Change resume to bool.
[04] Change resume to boolv4: [01] Added.
[03] Add common method pair "pause_drive" and "resume_drive".
[04] Also fix 040, 055.Fam Zheng (4):
qemu-iotests: Drop local version ofcancel_and_waitfrom 040
blkdebug: add "remove_break" command
qemu-iotest: Addpause_driveandresume_drivemethods
qemu-iotests: Make test case 030, 040 and 055 deterministicQuoted 10 lines
block.c | 13 +++++++++++++ block/blkdebug.c | 27 +++++++++++++++++++++++++++ include/block/block.h | 1 + include/block/block_int.h | 2 ++ qemu-io-cmds.c | 22 ++++++++++++++++++++++ tests/qemu-iotests/030 | 16 +++++++++++----- tests/qemu-iotests/040 | 19 +++---------------- tests/qemu-iotests/055 | 15 +++++++++++---- tests/qemu-iotests/iotests.py | 18 +++++++++++++++++- 9 files changed, 107 insertions(+), 26 deletions(-)
Quoted 2 lines
I get this failure after applying the patches onto my block-next tree:
Interesting. I guess this is what happens here:
- Pause drive.
- Start block job.
- Block job send first IO request.
- Request pended into blkdebug suspended request queue.
- Block job pause.
- Resume drive.
- Query block job #1. The first IO is not completed (luckily): offset
== 0.
- Script sleep for 1 sec. The first IO request continues and
completes, so the offset of block job becomes 65536.
- Query block job #2. The offset == 65536. Asserssion failed.
This is what happened when I tested it before posting:
- Pause drive.
- Start block job.
- "block-job-pause", before it even entering the IO loop.
- Resume drive. But the block job is paused, no IO submitted.
- Query block job #1. Offset is 0.
- Sleep for 1 second.
- Query block job #2. Offset is 0. (succeed by luck)
- Block job resume, starts to IO.
- Wait until completed
- ...
Apparently, need some improvements to make this more deterministic. :)
Fam
Quoted 33 lines
$ ./check -qcow2 055 QEMU -- /home/stefanha/qemu/tests/qemu-iotests/qemu QEMU_IMG -- /home/stefanha/qemu/tests/qemu-iotests/qemu-img QEMU_IO -- /home/stefanha/qemu/tests/qemu-iotests/qemu-io IMGFMT -- qcow2 (compat=1.1) IMGPROTO -- file PLATFORM -- Linux/x86_64 stefanha-thinkpad 3.11.8-300.fc20.x86_64 SOCKET_SCM_HELPER --055 9s ... [failed, exit status 1] - output mismatch (see 055.out.bad)
055.out.bad renamed from 055.out +12
-2@@ -1,5 +1,15 @@ -.............. +.......F...... +====================================================================== +FAIL: test_pause (__main__.TestSingleDrive) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "./055", line 80, in test_pause + self.assert_qmp(result, 'return[0]/offset', offset) + File "/home/stefanha/qemu/tests/qemu-iotests/iotests.py", line 232, in assert_qmp + self.assertEqual(result, value, 'values not equal "%s" and "%s"' % (str(result), str(value))) +AssertionError: values not equal "65536" and "0" + ---------------------------------------------------------------------- Ran 14 tests -OK +FAILED (failures=1)Failures: 055
Failed 1 of 1 tests