tests: explicitly wait for the PG to finish before looking for capture file 13/22913/2
authorAndrew Yourtchenko <[email protected]>
Fri, 11 Oct 2019 12:34:12 +0000 (12:34 +0000)
committerAndrew Yourtchenko <[email protected]>
Sun, 27 Oct 2019 10:03:28 +0000 (10:03 +0000)
commit5bf125be8fdfb7b552a8141d3010bd3fcd9189e8
tree4b487e1a47a7a31360308be8a79e1903a0d9dacb
parent7b135c639e7d8144859258700700112d0c61f8c1
tests: explicitly wait for the PG to finish before looking for capture file

Rather than only using time-based method of periodically checking
whether the pcap file appeared, first check that the packet generator
has stopped. To make this change fail-safe, have a 5-minute timeout
on this activity, just in case the things go terribly wrong.

Type: test
Signed-off-by: Andrew Yourtchenko <[email protected]>
Change-Id: Id16b2802b2de8a4cafb5d9f0a8c9ba62ec89dc32
(cherry picked from commit 3d36f19a0febaed532bd255a150504f7af8f18c2)
test/vpp_pg_interface.py