1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: better filter

Filter $PREFIX rather then just LVMTEST.
This commit is contained in:
Zdenek Kabelac 2015-05-08 20:44:43 +02:00
parent 1d832aef09
commit 53aff9322e
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ prepare_lvmetad() {
kill_sleep_kill_ LOCAL_LVMETAD ${LVM_VALGRIND_LVMETAD:-0}
# Avoid reconfiguring, if already set to use_lvmetad
(grep use_lvmetad CONFIG_VALUES 2>/dev/null | tail -1 | grep -q 1) || \
(grep use_lvmetad CONFIG_VALUES 2>/dev/null | tail -n 1 | grep -q 1) || \
aux lvmconf "global/use_lvmetad = 1" "devices/md_component_detection = 0"
# Default debug is "-l all" and could be override
# by setting LVM_TEST_LVMETAD_DEBUG_OPTS before calling inittest.
@ -735,7 +735,7 @@ extend_filter() {
}
extend_filter_LVMTEST() {
extend_filter "a|$DM_DEV_DIR/LVMTEST|"
extend_filter "a|$DM_DEV_DIR/$PREFIX|"
}
hide_dev() {

View File

@ -166,7 +166,7 @@ STACKTRACE() {
"$DM_DEV_DIR" | sed -e "s,^,## LSLR: ,"
echo "<======== Udev DB content ========>"
for i in /sys/block/dm-* /sys/block/loop* ; do
udevadm info --query=all --path "$i" || true
udevadm info --query=all --path "$i" 2>/dev/null || true
done | sed -e "s,^,## UDEV: ,"
fi
echo "<======== Script file \"$(< TESTNAME)\" ========>"