tests/run.sh: cleanup: wait for process(es) to finish (#1982)

Ref: https://github.com/awesomeWM/awesome/pull/1967#issuecomment-321978955
This commit is contained in:
Daniel Hahler 2017-08-13 11:57:59 +02:00 committed by GitHub
parent 2900ea6f01
commit 26f32f5ce4
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ export XDG_CONFIG_HOME="$build_dir"
cleanup() { cleanup() {
for p in $awesome_pid $xserver_pid; do for p in $awesome_pid $xserver_pid; do
kill -TERM "$p" 2>/dev/null || true kill -TERM "$p" 2>/dev/null || true
wait "$p"
done done
rm -rf "$tmp_files" || true rm -rf "$tmp_files" || true
} }