selftests: netfilter: nft_concat_range.sh: move to lib.sh infra
authorFlorian Westphal <fw@strlen.de>
Tue, 23 Apr 2024 13:05:44 +0000 (15:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Apr 2024 00:12:44 +0000 (17:12 -0700)
commit546fb63fe85e52c178684d4a7fac161708cdf34a
tree661d354cf4561e061482789908f3ba9f2036f8b3
parent66270920f90fadb8f29477eb2b83cfb821bac621
selftests: netfilter: nft_concat_range.sh: move to lib.sh infra

Use busywait helper instead of unconditional sleep, reduces run time
from 6m to 2:30 on my system.

The busywait helper calls the function passed to it as argument; disable
the shellcheck test for unreachable code, it generates many (false)
warnings here.

Signed-off-by: Florian Westphal <fw@strlen.de>
Link: https://lore.kernel.org/r/20240423130604.7013-2-fw@strlen.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/netfilter/nft_concat_range.sh