mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: resume devices on background
Since some devices may need correct order of their resuming, resume then all on background and wait for finish.
This commit is contained in:
parent
9ec474f38a
commit
0dc6ba8309
@ -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[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user