summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-09-21 18:02:50 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-09-21 21:03:47 +0200
commitbb6fd1a15f32d79ddaa351704dea47ad9e5ab9be (patch)
treea0fc512de23cfc1ea5b576eaea9f0b0e6864f366 /test/lib
parent5bd99d55b023f1e105bea6033aa57db3987f2ba5 (diff)
downloadlvm2-bb6fd1a15f32d79ddaa351704dea47ad9e5ab9be.tar.gz
shellcheck: warning enhancements
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/aux.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index 25e8c2ca5..ca9406383 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -607,7 +607,7 @@ teardown() {
# Remove any dangling symlink in /dev/disk (our tests can confuse udev)
test -d /dev/disk && {
- find /dev/disk -type l ! -exec /usr/bin/test -e {} \; -print | xargs rm -f || true
+ find /dev/disk -type l ! -exec /usr/bin/test -e {} \; -print0 | xargs -0 rm -f || true
}
# Remove any metadata archives and backups from this test on system
@@ -1200,7 +1200,7 @@ remove_dm_devs() {
}
remove=( "${held[@]}" )
done
- die "Can't remove device(s) ${held[@]}"
+ die "Can't remove device(s) ${held[*]}"
}
# Throttle down performance of kcopyd when mirroring i.e. disk image