diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-26 20:43:38 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-29 12:21:07 +0200 |
commit | 5b899dce7a9dd77d0e20f3d4f46a743dd5657169 (patch) | |
tree | ea3cd63ab6c103091ae06a701be076bad3bd0f0c /test/pasta/tcp | |
parent | 33983de46bc8038c6795a0fa6b3c6c7ab345150c (diff) | |
download | passt-5b899dce7a9dd77d0e20f3d4f46a743dd5657169.tar passt-5b899dce7a9dd77d0e20f3d4f46a743dd5657169.tar.gz passt-5b899dce7a9dd77d0e20f3d4f46a743dd5657169.tar.bz2 passt-5b899dce7a9dd77d0e20f3d4f46a743dd5657169.tar.lz passt-5b899dce7a9dd77d0e20f3d4f46a743dd5657169.tar.xz passt-5b899dce7a9dd77d0e20f3d4f46a743dd5657169.tar.zst passt-5b899dce7a9dd77d0e20f3d4f46a743dd5657169.zip |
test: More robust wait for pasta/passt to be ready
When we start passt or pasta, it may take a short time to be ready to
handle packets, especially if running under valgrind. We have a
number of semi-arbitrary fixed sleeps to account for this.
We can do this more robustly by exploiting the fact that pasta/passt
doesn't write its pidfile until it's ready to go, so if we wait for
the pidfile to be created, we can proceed with confidence.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/pasta/tcp')
0 files changed, 0 insertions, 0 deletions