mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: use shell comment
This commit is contained in:
parent
93336685f6
commit
a55f4a8fe2
@ -12,9 +12,11 @@
|
|||||||
|
|
||||||
SKIP_WITH_LVMPOLLD=1
|
SKIP_WITH_LVMPOLLD=1
|
||||||
|
|
||||||
/* hints are currently disabled with lvmlockd */
|
# hints are currently disabled with lvmlockd
|
||||||
SKIP_WITH_LVMLOCKD=1
|
SKIP_WITH_LVMLOCKD=1
|
||||||
|
|
||||||
|
. lib/inittest
|
||||||
|
|
||||||
RUNDIR="/run"
|
RUNDIR="/run"
|
||||||
test -d "$RUNDIR" || RUNDIR="/var/run"
|
test -d "$RUNDIR" || RUNDIR="/var/run"
|
||||||
HINTS="$RUNDIR/lvm/hints"
|
HINTS="$RUNDIR/lvm/hints"
|
||||||
@ -22,8 +24,6 @@ NOHINTS="$RUNDIR/lvm/nohints"
|
|||||||
NEWHINTS="$RUNDIR/lvm/newhints"
|
NEWHINTS="$RUNDIR/lvm/newhints"
|
||||||
PREV="$RUNDIR/lvm/prev-hints"
|
PREV="$RUNDIR/lvm/prev-hints"
|
||||||
|
|
||||||
. lib/inittest
|
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# Test commands that ignore hints
|
# Test commands that ignore hints
|
||||||
# Test flock
|
# Test flock
|
||||||
@ -55,7 +55,7 @@ not grep scan: tmptest
|
|||||||
# test that 'pvs' submits only three reads, one for each PV in hints
|
# test that 'pvs' submits only three reads, one for each PV in hints
|
||||||
# for initial scan, and one more in vg_read rescan check
|
# for initial scan, and one more in vg_read rescan check
|
||||||
|
|
||||||
if [ -e "/usr/bin/strace" ]; then
|
if which strace; then
|
||||||
strace -e io_submit pvs 2>&1|tee tmptest
|
strace -e io_submit pvs 2>&1|tee tmptest
|
||||||
test "$(grep io_submit tmptest | wc -l)" -eq 3
|
test "$(grep io_submit tmptest | wc -l)" -eq 3
|
||||||
|
|
||||||
@ -413,4 +413,3 @@ grep $vg4 $HINTS
|
|||||||
vgremove -y $vg4
|
vgremove -y $vg4
|
||||||
vgremove -y $vg2
|
vgremove -y $vg2
|
||||||
vgremove -y $vg1
|
vgremove -y $vg1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user