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:
parent
2900ea6f01
commit
26f32f5ce4
|
@ -90,6 +90,7 @@ export XDG_CONFIG_HOME="$build_dir"
|
|||
cleanup() {
|
||||
for p in $awesome_pid $xserver_pid; do
|
||||
kill -TERM "$p" 2>/dev/null || true
|
||||
wait "$p"
|
||||
done
|
||||
rm -rf "$tmp_files" || true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue