diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-04-01 09:36:23 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-04-06 11:54:37 +0200 |
commit | 307ab2c179073d28d1c9ec9f995f2849aeab07c6 (patch) | |
tree | 8f903496db903dec4505e1554ce2da68c8943ab5 | |
parent | 07c25429e2b1eb08bb208a6bae015870c7ae635a (diff) | |
download | lvm2-307ab2c179073d28d1c9ec9f995f2849aeab07c6.tar.gz |
tests: do not break teardown on failing losetup
Ignore failing 'losetup -d' - i.e. device may have disappeared...
-rw-r--r-- | test/lib/aux.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 9fd1922e3..c8985ede0 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -431,7 +431,7 @@ teardown_devs() { test ${#stray_loops[@]} -eq 0 || { teardown_devs_prefixed "$COMMON_PREFIX" 1 echo "Removing stray loop devices containing $COMMON_PREFIX: ${stray_loops[@]}" - for i in "${stray_loops[@]}" ; do test ! -b $i || losetup -d $i ; done + for i in "${stray_loops[@]}" ; do test ! -b $i || losetup -d $i || true ; done # Leave test when udev processed all removed devices udev_wait } |