selftest/wscript: properly handle env.cwd which is a list, not a string
authorAlexander Bokovoy <ab@samba.org>
Tue, 3 Jul 2018 08:18:05 +0000 (11:18 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:27 +0000 (06:37 +0200)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/wscript

index 2c45e1bf8f78dcdbac2d004301f7784b8b2b6618..ce1e117cbdcdba64599bcfb445338f3c40b48507 100644 (file)
@@ -202,7 +202,8 @@ 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'] = os.path.abspath(os.path.join(env.cwd, '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'