Skip to content
Commit 90ab5122 authored by Boris Sukholitko's avatar Boris Sukholitko Committed by Pablo Neira Ayuso
Browse files

selftests: nft_flowtable.sh: monitor result file sizes



When running nft_flowtable.sh in VM on a busy server we've found that
the time of the netcat file transfers vary wildly.

Therefore replace hardcoded 3 second sleep with the loop checking for
a change in the file sizes. Once no change in detected we test the results.

Nice side effect is that we shave 1 second sleep in the fast case
(hard-coded 3 second sleep vs two 1 second sleeps).

Acked-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarBoris Sukholitko <boris.sukholitko@broadcom.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 1114803c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment