]> git.notmuchmail.org Git - notmuch/commitdiff
test: add python-cffi bindings to path for test_python
authorDavid Bremner <david@tethera.net>
Sat, 30 Oct 2021 16:22:33 +0000 (13:22 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 4 Dec 2021 12:36:23 +0000 (08:36 -0400)
This will allow testing the new python bindings using test_python, in
addition to the current invocation of pytest.

test/test-lib.sh

index 32f710a58576a52f8ad62ae3429ec4bbe37a0c94..e476a69b2a50f9c06f4b673881ee4024d464e6ab 100644 (file)
@@ -909,7 +909,7 @@ test_done () {
 test_python () {
     # Note: if there is need to print debug information from python program,
     # use stdout = os.fdopen(6, 'w') or stderr = os.fdopen(7, 'w')
-    PYTHONPATH="$NOTMUCH_SRCDIR/bindings/python${PYTHONPATH:+:$PYTHONPATH}" \
+    PYTHONPATH="$NOTMUCH_BUILDDIR/bindings/python-cffi/build/stage:$NOTMUCH_SRCDIR/bindings/python${PYTHONPATH:+:$PYTHONPATH}" \
        $NOTMUCH_PYTHON -B - > OUTPUT
 }