1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: inittest.sh double quote and mixing string

This commit is contained in:
Zdenek Kabelac 2017-06-29 10:38:06 +02:00
parent b45ca523ec
commit 32be18959d

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (C) 2011-2015 Red Hat, Inc. All rights reserved. # Copyright (C) 2011-2017 Red Hat, Inc. All rights reserved.
# #
# This copyrighted material is made available to anyone wishing to use, # This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions # modify, copy, or redistribute it subject to the terms and conditions
@ -10,7 +10,7 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
initskip() { initskip() {
test "$#" -eq 0 || echo "TEST SKIPPED: $@" test "$#" -eq 0 || echo "TEST SKIPPED: " "$@"
exit 200 exit 200
} }
@ -26,7 +26,7 @@ PS4='#${BASH_SOURCE[0]##*/}:${LINENO}+ '
export TESTNAME PS4 export TESTNAME PS4
if test -n "$LVM_TEST_FLAVOUR"; then if test -n "$LVM_TEST_FLAVOUR"; then
. lib/flavour-$LVM_TEST_FLAVOUR . "lib/flavour-$LVM_TEST_FLAVOUR"
fi fi
test -n "$SKIP_WITHOUT_CLVMD" && test "$LVM_TEST_LOCKING" -ne 3 && initskip test -n "$SKIP_WITHOUT_CLVMD" && test "$LVM_TEST_LOCKING" -ne 3 && initskip