selftest: Use the absolute path to the ldb modules.
authorAndreas Schneider <asn@samba.org>
Fri, 21 Feb 2014 13:23:00 +0000 (14:23 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 21 Feb 2014 14:59:28 +0000 (15:59 +0100)
This fixes 'make test' on Fedora with external ldb.

Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
selftest/wscript

index 3c5457f9610100dbf532ba053135bbe835ab55a0..ad77e9105b997ddeb4f287634d08c891ab06a9da 100644 (file)
@@ -179,7 +179,7 @@ def cmd_testonly(opt):
     # if we are using a system version of ldb then we need to tell it to
     # load modules from our modules path
     if env.USING_SYSTEM_LDB:
-        os.environ['LDB_MODULES_PATH'] = 'bin/modules/ldb'
+        os.environ['LDB_MODULES_PATH'] = os.path.abspath(os.path.join(env.cwd, 'bin/modules/ldb'))
 
     # tell build system where to find config.h
     os.environ['CONFIG_H'] = 'bin/default/include/config.h'