test/python: set LD_LIBRARY_PATH and PYTHONPATH to use local notmuch

Possibly this should be factored out into some kind of "run_python"
function.
This commit is contained in:
David Bremner 2011-12-05 23:06:50 -04:00
parent 8e3879b689
commit 07bb8b9e89

View file

@ -5,6 +5,8 @@ test_description="python bindings"
add_email_corpus add_email_corpus
test_begin_subtest "compare thread ids" test_begin_subtest "compare thread ids"
LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib \
PYTHONPATH=$TEST_DIRECTORY/../bindings/python \
python <<EOF | sort > OUTPUT python <<EOF | sort > OUTPUT
import notmuch import notmuch
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE) db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)