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