mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: hints check if strace exists
avoid test failure if test system does not have strace
This commit is contained in:
parent
dc1e12dcd4
commit
99ca06ca46
@ -53,12 +53,15 @@ grep -v -E "$dev1|$dev2" $HINTS > tmptest
|
||||
not grep scan: tmptest
|
||||
|
||||
# test that 'pvs' submits only two reads, one for each PV in hints
|
||||
|
||||
if [ -e "/usr/bin/strace" ]; then
|
||||
strace -e io_submit pvs 2>&1|tee tmptest
|
||||
test "$(grep io_submit tmptest | wc -l)" -eq 2
|
||||
|
||||
# test that 'pvs -a' submits six reads, one for each device
|
||||
strace -e io_submit pvs -a 2>&1|tee tmptest
|
||||
test "$(grep io_submit tmptest | wc -l)" -eq 6
|
||||
fi
|
||||
|
||||
#
|
||||
# vg2 uses dev3,dev4
|
||||
|
Loading…
Reference in New Issue
Block a user