diff options
author | Thomas Haller <thaller@redhat.com> | 2023-09-13 00:44:49 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-09-14 14:26:44 +0200 |
commit | 35d437b7cc19d5126736e4820dcb38cfff051200 (patch) | |
tree | 3122895a9a7c1f94365f356941da0533a6a2197d /tests/shell/helpers/nft-valgrind-wrapper.sh | |
parent | 5b7d1fc6a9ad494801d481615a5af73f82753ac1 (diff) |
tests/shell: kill running child processes when aborting "run-tests.sh"
When aborting "run-tests.sh", child processes were left running. Kill
them. It's surprisingly complicated to get this somewhat right. Do it by
enabling monitor mode for each test call, so that they run in separate
process groups and we can kill the entire group.
Note that we cannot just `kill -- -$$`, because it's not clear who is in
this process group. Also, we don't want to kill the `tee` process which
handles our logging.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/helpers/nft-valgrind-wrapper.sh')
0 files changed, 0 insertions, 0 deletions