make test: kill all remaining subprocesses on exit 17/7517/2
authorKlement Sekera <ksekera@cisco.com>
Tue, 11 Jul 2017 05:29:37 +0000 (07:29 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Mon, 7 Aug 2017 14:53:17 +0000 (14:53 +0000)
commit94384e4d3a4143578d5140c386188fd389754ebf
tree86a9cdea86b5ad535edaa8bb6314580d2456f0f3
parent5391e19c9cb56e53437c8634725f130283bc5951
make test: kill all remaining subprocesses on exit

This change introduces a wrapper script which kills all processes in
the same process group as itself (with the exception of the script).
Using this script to run the unit tests should prevent stale processes
left behind in some cases (e.g. when test framework crashes).

Change-Id: If3b9201c06b87fa6be095721436893207d09b5e4
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/Makefile
test/scripts/run_with_cleanup.sh [new file with mode: 0755]