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

tests: passthrough args with extend_filter_LVMTEST

Don't rebuild config twice.
This commit is contained in:
Zdenek Kabelac 2018-05-24 11:12:17 +02:00
parent 89f34eaf0c
commit f865e1bf87
2 changed files with 2 additions and 3 deletions

View File

@ -1175,7 +1175,7 @@ extend_filter() {
} }
extend_filter_LVMTEST() { extend_filter_LVMTEST() {
extend_filter "a|$DM_DEV_DIR/$PREFIX|" extend_filter "a|$DM_DEV_DIR/$PREFIX|" "$@"
} }
hide_dev() { hide_dev() {

View File

@ -25,8 +25,7 @@ aux prepare_devs 2
aux prepare_md_dev 0 64 2 "$dev1" "$dev2" aux prepare_md_dev 0 64 2 "$dev1" "$dev2"
aux lvmconf 'devices/md_component_detection = 1' aux lvmconf 'devices/md_component_detection = 1'
aux extend_filter_LVMTEST aux extend_filter_LVMTEST "a|/dev/md|"
aux extend_filter "a|/dev/md.*|"
pvdev=$(< MD_DEV_PV) pvdev=$(< MD_DEV_PV)