提交 01051f3d 编写于 作者: L Lei Yang

Add test parameters to reduce debug.log output

1.debug.log is too big to load
2.Filter the output of tcpdump and bootps
Signed-off-by: NLei Yang <leiyang@redhat.com>
上级 a2a19c40
......@@ -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.
先完成此消息的编辑!
想要评论请 注册