diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 7c0c1891d..e3dfdd978 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -98,9 +98,11 @@ teardown_devs_prefixed() { # Resume suspended devices first for dm in $(dm_info suspended,name | grep "^Suspended:.*$prefix"); do echo "dmsetup resume \"${dm#Suspended:}\"" - dmsetup resume "${dm#Suspended:}" || true + dmsetup resume "${dm#Suspended:}" & done + wait + local mounts=( $(grep "$prefix" /proc/mounts | cut -d' ' -f1) ) if test ${#mounts[@]} -gt 0; then test "$stray" -eq 0 || echo "Removing stray mounted devices containing $prefix: ${mounts[@]}"