]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: workaround lack of `wait -p` before bash 5.1
authorThomas Haller <thaller@redhat.com>
Mon, 27 Nov 2023 19:15:35 +0000 (20:15 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 28 Nov 2023 01:06:31 +0000 (02:06 +0100)
commitf03ca7390f8b923d4302b08941ad9e87440240f9
tree6d982b00e676812d7aa3c716ad2dc4ee1e13b6f5
parent4dfb5b2010917da3f9f11c83931069931a7d6fb3
tests/shell: workaround lack of `wait -p` before bash 5.1

Before bash 5.1, `wait -p` is not supported. So we cannot know which
child process completed.

As workaround, explicitly wait for the next PID. That works, but it
significantly reduces parallel execution, because a long running job
blocks the queue.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/run-tests.sh