master - test: correcting binary usage
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=aa25cfe084adf360c4ab1333a927b49279796f00 Commit: aa25cfe084adf360c4ab1333a927b49279796f00 Parent: 15c3ad9641deaee64f4c645a87d191adb098035e Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Apr 14 01:03:18 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Apr 14 01:03:18 2017 +0200
test: correcting binary usage
Ensure 'test suite' run uses fsadm and dmeventd from compiled dir, while for 'rpm' installed test use binaries installed in system.
--- test/lib/aux.sh | 9 ++++++++- test/shell/dmeventd-restart.sh | 5 ----- 2 files changed, 8 insertions(+), 6 deletions(-)
test/lib/aux.sh +8 -1
@@ -1157,7 +1157,6 @@ global/thin_repair_executable = "$LVM_TEST_THIN_REPAIR_CMD" global/use_lvmetad = $LVM_TEST_LVMETAD global/use_lvmpolld = $LVM_TEST_LVMPOLLD global/use_lvmlockd = $LVM_TEST_LVMLOCKD -global/fsadm_executable = "$TESTDIR/lib/fsadm" log/activation = 1 log/file = "$TESTDIR/debug.log" log/indent = 1
@@ -1166,6 +1165,14 @@ log/overwrite = 1 log/syslog = 0 log/verbose = 0 EOF + # For 'rpm' builds use system installed binaries. + # For test suite run use binaries from builddir. + test -z "${abs_top_builddir+varset}" || { + cat >> "$config_values" <<-EOF +dmeventd/executable = "$abs_top_builddir/test/lib/dmeventd" +global/fsadm_executable = "$abs_top_builddir/test/lib/fsadm" +EOF + } } local v
test/shell/dmeventd-restart.sh +0 -5
@@ -45,11 +45,6 @@ sleep 7 not pgrep dmeventd rm LOCAL_DMEVENTD -# set dmeventd path -if test -n "$abs_top_builddir"; then - aux lvmconf "dmeventd/executable=\"$abs_top_builddir/test/lib/dmeventd\"" -fi - lvchange --monitor y --verbose $vg/3way 2>&1 | tee lvchange.out pgrep -o dmeventd >LOCAL_DMEVENTD not grep 'already monitored' lvchange.out