diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-13 10:09:50 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-27 10:05:12 +0000 |
commit | 13d35675f0a4daa7bbffa02a8cd4d22c8a2d6760 (patch) | |
tree | f4d54d08761d3af039144f019817cbf8716454ef /src/scripts/vnet/leftpeer/leftpeer-dhcp | |
parent | e46f029003c126a901dfc5e1960984b9faf3ebc9 (diff) |
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
(cherry picked from commit 8d829f6c480cdd6536537fc49356baa1878b9570)
Diffstat (limited to 'src/scripts/vnet/leftpeer/leftpeer-dhcp')
0 files changed, 0 insertions, 0 deletions