提交 a69e9c3f 编写于 作者: X Xu Tian

qemu.tests: fix cfg typo in drive_mirror

Signed-off-by: NXu Tian <xutian@redhat.com>
上级 fcef3478
......@@ -92,7 +92,7 @@
negative_test = yes
variants:
- readonly_target:
create_mode = existing
create_mode_target = existing
before_start = readonly_target
before_cleanup = clear_readonly_bit
- with_stress:
......
......@@ -56,13 +56,13 @@ def run(test, params, env):
simple_test.action_before_start()
try:
simple_test.start()
except error.TestFail, detail:
except Exception, detail:
if params.get("negative_test") == "yes":
if not re.search(r"No active.*job", str(detail), re.I):
raise error.TestFail("Block job not cancelled in"
"negative testing")
break
raise
keywords = params.get("error_key_words", "Could not open")
if simple_test.get_status():
raise error.TestFail("Block job not cancel as expect")
if keywords not in str(detail):
raise
simple_test.action_before_steady()
if simple_test.get_status():
simple_test.cancel()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册