test/python: set LD_LIBRARY_PATH and PYTHONPATH to use local notmuch 0.10.2 debian/0.10.2-1
authorDavid Bremner <bremner@debian.org>
Tue, 6 Dec 2011 03:06:50 +0000 (23:06 -0400)
committerDavid Bremner <bremner@debian.org>
Tue, 6 Dec 2011 03:06:50 +0000 (23:06 -0400)
Possibly this should be factored out into some kind of "run_python"
function.

test/python

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