diff --git a/generic/tests/pxe_boot.py b/generic/tests/pxe_boot.py index d089d4a377394016cc6f738e32a12610c9d4c890..89ea1d6b7fc1badf122c15a97c39b60e33e3dacb 100644 --- a/generic/tests/pxe_boot.py +++ b/generic/tests/pxe_boot.py @@ -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, diff --git a/qemu/tests/pxe_query_cpus.py b/qemu/tests/pxe_query_cpus.py index 25129b1a7e8eb554ee79dc45485e092315302bb2..d820f3e80c6577f4f4cdea0856546de259cf5f22 100644 --- a/qemu/tests/pxe_query_cpus.py +++ b/qemu/tests/pxe_query_cpus.py @@ -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