diff mbox

[lnst] recipes: switchdev: l2-021-span: Wait before killing tcpdump

Message ID 69b68cad89bb1b376839c90f2e6c0c119fadd56f.1525108310.git.petrm@mellanox.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Petr Machata April 30, 2018, 5:12 p.m. UTC
When tcpdump is killed immediately after "ping" finishes, some of the
tcpdump output may be cut short.

Signed-off-by: Petr Machata <petrm@mellanox.com>
---
 recipes/switchdev/l2-021-span.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/recipes/switchdev/l2-021-span.py b/recipes/switchdev/l2-021-span.py
index e14b1e4..568b71c 100644
--- a/recipes/switchdev/l2-021-span.py
+++ b/recipes/switchdev/l2-021-span.py
@@ -117,6 +117,7 @@  def do_task(ctl, hosts, ifaces, aliases):
             assert_procs += run_packet_assert(out_num, m2_if2, m1_if1, m2_if1,
                                               aliases["ipv"])
             tl.ping_simple(m1_if1, m2_if1, count=10)
+            sleep(1)
             for assert_proc in assert_procs:
                 assert_proc.intr()