Scripts: wait for node termination before cleaning up temporary files

This commit is contained in:
Benjamin Canou 2017-09-28 15:40:27 +02:00
parent 5028c8a845
commit c3ed0d35a5

View File

@ -40,5 +40,6 @@ start_sandboxed_node() {
cleanup_nodes() {
[ -z "${node_pids[0]}" ] || kill "${node_pids[@]}"
for pid in "${node_pids[@]}" ; do wait "$pid" ; done
rm -rf "${node_dirs[@]}"
}