master - tests: older losetup allows only single device name
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7f4452a41e55a60678cadda99ae1a383a367a9e5 Commit: 7f4452a41e55a60678cadda99ae1a383a367a9e5 Parent: d9e44112c53cad296858f5f796add99441a4b2ae Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Oct 17 17:52:42 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Oct 17 17:52:42 2013 +0200
tests: older losetup allows only single device name
Stay compatible with only 1 arg for losetup -d
--- test/lib/aux.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/aux.sh +1 -1
@@ -162,7 +162,7 @@ teardown_devs() { local stray_loops=( $(losetup -a | grep "$COMMON_PREFIX" | cut -d: -f1) ) test ${#stray_loops[@]} -eq 0 || { echo "Removing stray loop devices containing $COMMON_PREFIX: ${stray_loops[@]}" - losetup -d "${stray_loops[@]}" + for i in "${stray_loops[@]}" ; do losetup -d $i ; done } } }