1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

tests: check for python before other tests

This commit is contained in:
Zdenek Kabelac 2014-02-24 10:51:10 +01:00
parent 32138969f9
commit dc839fb361

View File

@ -20,19 +20,20 @@
# Until fixed - testing always runs with enabled monitoring
# thus it needs dmeventd
#
aux prepare_dmeventd
test ! -e LOCAL_CLVMD || skip
test ! -e LOCAL_LVMETAD || skip
#If you change this change the unit test case too.
aux prepare_pvs 6
#Locate the python binding library to use.
python_lib=$(find $abs_top_builddir -name lvm.so)
# Unable to test python bindings if library not available
test -n "$python_lib" || skip
test -e LOCAL_CLVMD && skip
test -e LOCAL_LVMETAD && skip
aux prepare_dmeventd
#If you change this change the unit test case too.
aux prepare_pvs 6
export PYTHONPATH=$(dirname $python_lib):$PYTHONPATH
#Setup which devices the unit test can use.