提交 a744c0ad 编写于 作者: L Lukáš Doktor

Skip test on unknown qcver

Those 3 variants currently only work for the old "qemu -cpu ?" handling,
but it only informs the user about not-running when new (1350) type is
detected. In other cases (not old, nor 1350) it silently passes without
notifying the user that nothing was actually executed. Let's use "else"
instead of "elif" to avoid silent skips.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 44c446d0
......@@ -531,8 +531,9 @@ def run(test, params, env):
raise error.TestFail("CPU models %s are not in output "
"'%s' of command \n%s" %
(missing, cmd, result.stdout))
elif qcver == "1350":
raise error.TestNAError("New qemu use new -cpu ? cmd.")
else:
raise error.TestNAError("New qemu does not support -cpu "
"?model. (%s)" % qcver)
# 2) <qemu-kvm-cmd> -cpu ?dump
class test_qemu_dump(MiniSubtest):
......@@ -551,9 +552,9 @@ def run(test, params, env):
raise error.TestFail("CPU models %s are not in output "
"'%s' of command \n%s" %
(missing, cmd, result.stdout))
elif qcver == "1350":
raise error.TestNAError(
"New qemu does not support -cpu ?dump.")
else:
raise error.TestNAError("New qemu does not support -cpu "
"?dump. (%s)" % qcver)
# 3) <qemu-kvm-cmd> -cpu ?cpuid
class test_qemu_cpuid(MiniSubtest):
......@@ -566,8 +567,9 @@ def run(test, params, env):
raise error.TestFail("There aren't any cpu Flag in output"
" '%s' of command \n%s" %
(cmd, result.stdout))
elif qcver == "1350":
raise error.TestNAError("New qemu use new -cpu ? cmd.")
else:
raise error.TestNAError("New qemu does not support -cpu "
"?cpuid. (%s)" % qcver)
# 1) boot with cpu_model
class test_boot_cpu_model(Test_temp):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册