Scripts: wait for node termination before cleaning up temporary files
This commit is contained in:
parent
5028c8a845
commit
c3ed0d35a5
@ -40,5 +40,6 @@ start_sandboxed_node() {
|
|||||||
|
|
||||||
cleanup_nodes() {
|
cleanup_nodes() {
|
||||||
[ -z "${node_pids[0]}" ] || kill "${node_pids[@]}"
|
[ -z "${node_pids[0]}" ] || kill "${node_pids[@]}"
|
||||||
|
for pid in "${node_pids[@]}" ; do wait "$pid" ; done
|
||||||
rm -rf "${node_dirs[@]}"
|
rm -rf "${node_dirs[@]}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user