提交 ac711f3b 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #2 from FengYang/flag_check

qemu.tests.flag_check: Correct params.get() function call.
import re
import logging
import os.path
from virttest import utils_misc, data_dir
from autotest.client.shared import utils, error
......@@ -123,7 +124,8 @@ def run(test, params, env):
# Get all models' info from dump file
dump_file = params.get("dump_file")
dump_path = params.get("dump_path", data_dir.get_deps_dir(), "cpuid")
default_dump_path = os.path.join(data_dir.get_deps_dir(), "cpuid")
dump_path = params.get("dump_path", default_dump_path)
cpuinfo_file = utils.unmap_url(dump_path, dump_file, dump_path)
host_flags = utils_misc.get_cpu_flags()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册