tests: make pg_start() wait until pg completes 15/22915/2
authorAndrew Yourtchenko <[email protected]>
Sun, 13 Oct 2019 10:09:50 +0000 (10:09 +0000)
committerAndrew Yourtchenko <[email protected]>
Sun, 27 Oct 2019 10:05:12 +0000 (10:05 +0000)
commit13d35675f0a4daa7bbffa02a8cd4d22c8a2d6760
treef4d54d08761d3af039144f019817cbf8716454ef
parente46f029003c126a901dfc5e1960984b9faf3ebc9
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 <[email protected]>
Change-Id: I930e51b7aae39c9841d22dd905a4d13a465a672b
Type: test
(cherry picked from commit 8d829f6c480cdd6536537fc49356baa1878b9570)
test/framework.py