tests: make pg_start() wait until pg completes 92/22692/5
authorAndrew Yourtchenko <ayourtch@gmail.com>
Sun, 13 Oct 2019 10:09:50 +0000 (10:09 +0000)
committerOle Trøan <otroan@employees.org>
Mon, 14 Oct 2019 21:55:01 +0000 (21:55 +0000)
commit8d829f6c480cdd6536537fc49356baa1878b9570
tree6f8ebdc9162e5311b551cd409717811f6313dc91
parent4f05a8e408cba09057841d97cd5e7da3058836d1
tests: make pg_start() wait until pg completes

A sizable number of tests call pg_start() to get the packets flowing and then
immediately expect to have the entirety of the packets gone through.
This works on powerful and unstressed hardware, but fails in beautifully random
ways under load.

This also necessitates the complicated logic of remembering the "zombie captures",
then sleeping for some time before cleaning them up....

The solution is simple: in pg_start(), start the generators, wait till they
all finish, clean up, done.

Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I930e51b7aae39c9841d22dd905a4d13a465a672b
Type: test
test/framework.py