未验证 提交 3502a7ae 编写于 作者: Y Yu Yihuang 提交者: GitHub

Merge pull request #2296 from yanglei-rh/bug1850346

Add test parameters to reduce debug.log output
......@@ -24,7 +24,7 @@ def run(test, params, env):
timeout = int(params.get("pxe_timeout", 60))
error_context.context("Snoop packet in the tap device", logging.info)
tcpdump_cmd = "tcpdump -nli %s" % vm.get_ifname()
tcpdump_cmd = "tcpdump -nli %s port '(tftp or bootps)'" % vm.get_ifname()
try:
tcpdump_process = aexpect.run_bg(command=tcpdump_cmd,
output_func=logging.debug,
......
......@@ -15,7 +15,7 @@ from virttest import env_process
@error_context.context_aware
def _capture_tftp(test, vm, timeout):
error_context.context("Snoop packet in the tap device", logging.info)
output = aexpect.run_fg("tcpdump -nli %s" % vm.get_ifname(),
output = aexpect.run_fg("tcpdump -nli %s port '(tftp or bootps)'" % vm.get_ifname(),
logging.debug, "(pxe capture) ", timeout)[1]
error_context.context("Analyzing the tcpdump result", logging.info)
......@@ -84,7 +84,7 @@ def run(test, params, env):
while True:
count += 1
try:
vm.monitor.info("cpus")
vm.monitor.info("cpus", debug=False)
vm.verify_status("running")
if not bg.is_alive():
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册