Skip to content

Commit 1114803

Browse files
Boris Sukholitkoummakynes
authored andcommitted
selftests: nft_flowtable.sh: wait for specific nc pids
Doing wait with no parameters may interfere with some of the tests having their own background processes. Although no such test is currently present, the cleanup is useful to rely on the nft_flowtable.sh for local development (e.g. running background tcpdump command during the tests). Signed-off-by: Boris Sukholitko <boris.sukholitko@broadcom.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 0749d67 commit 1114803

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/testing/selftests/netfilter/nft_flowtable.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ test_tcp_forwarding_ip()
296296
kill $cpid
297297
fi
298298

299-
wait
299+
wait $lpid
300+
wait $cpid
300301

301302
if ! check_transfer "$nsin" "$ns2out" "ns1 -> ns2"; then
302303
lret=1

0 commit comments

Comments
 (0)