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>
Tue, 23 Jan 2024 10:12:20 +0000 (11:12 +0100)
Otherwise tests won't find the custom tdb python bindings

Signed-off-by: Stefan Metzmacher <metze@samba.org>
script/autobuild.py

index e074c39d3c0b3b8f7f4e44c3203ce4905e9294a8..cf91e0dea9413741a2e276c0a53aa7c2a814f5dd 100755 (executable)
@@ -857,7 +857,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"])
             ),