master - tests: check for python before other tests
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=dc839fb3610a344d6c392a09995e44e6dbfac545 Commit: dc839fb3610a344d6c392a09995e44e6dbfac545 Parent: 32138969f9f8bd4e33e2b9131ac67db061d75f70 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Feb 24 10:51:10 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Feb 24 21:13:36 2014 +0100
tests: check for python before other tests
--- test/api/pytest.sh | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-)
test/api/pytest.sh +8 -7
@@ -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.