diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-09-21 22:42:43 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-09-22 00:08:44 +0200 |
commit | 7e63364529e563cf7609875f6aca10303c03883e (patch) | |
tree | cb546e1cf6dd9f44066e62954b3469baa55dbc2a | |
parent | 2e5bde4a77d672ff763b5134055d4d35a753de6d (diff) | |
download | lvm2-7e63364529e563cf7609875f6aca10303c03883e.tar.gz |
tests: check for block device
Need to detect if block device exist.
-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 a59f98a17..56316f768 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -253,7 +253,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 ! -f $i || losetup -d $i ; done + for i in "${stray_loops[@]}" ; do test ! -b $i || losetup -d $i ; done # Leave test when udev processed all removed devices udev_wait } |