script/autobuild.py: also pass PYTHONPATH to make test of 'samba-ctdb'
authorStefan Metzmacher <metze@samba.org>
Mon, 15 Jan 2024 12:06:57 +0000 (13:06 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 26 Jan 2024 17:00:33 +0000 (17:00 +0000)
Otherwise tests won't find the custom tdb python bindings

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
script/autobuild.py

index afec075cc09759117f99aa7c27679db3697e05a3..ecec352fe1b83faa265d2e2c034e873a2eaecb6c 100755 (executable)
@@ -861,7 +861,7 @@ tasks = {
             ("ctdb-check", "test -e ${PREFIX_DIR}/sbin/ctdbd"),
 
             ("test", make_test(
-                cmd='make test',
+                cmd='PYTHONPATH=${PYTHON_PREFIX}:$PYTHONPATH make test',
                 INJECT_SELFTEST_PREFIX=0,
                 include_envs=["clusteredmember"])
             ),