python samba test: enable samba.tests.libsmb_samba_internal for py3
authorNoel Power <noel.power@suse.com>
Thu, 8 Mar 2018 10:37:23 +0000 (10:37 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2018 06:59:09 +0000 (08:59 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/wscript_build
source4/selftest/tests.py

index ed9ed24fae21179ffc29c479919744ff49d18b5b..254738e69eaa151e8f6a705463495a1205e55592 100644 (file)
@@ -1302,7 +1302,8 @@ bld.SAMBA3_PYTHON('pysmbd',
                   realname='samba/samba3/smbd.so'
                   )
 
-bld.SAMBA3_PYTHON('pylibsmb',
+for env in bld.gen_python_environments():
+    bld.SAMBA3_PYTHON('pylibsmb',
                   source='libsmb/pylibsmb.c',
                   deps='smbclient samba-credentials pycredentials',
                   realname='samba/samba3/libsmb_samba_internal.so'
index 0f32c6deed15816a479cfdfe0282453c075e5249..b882502be75ed2028850aa77d09671ca7f74198a 100755 (executable)
@@ -376,7 +376,7 @@ for t in smbtorture4_testsuites("dlz_bind9."):
     #The dlz_bind9 tests needs to look at the DNS database
     plansmbtorture4testsuite(t, "chgdcpass:local", ["ncalrpc:$SERVER", '-U$USERNAME%$PASSWORD'])
 
-planpythontestsuite("nt4_dc", "samba.tests.libsmb_samba_internal");
+planpythontestsuite("nt4_dc", "samba.tests.libsmb_samba_internal", py3_compatible=True);
 
 # Blackbox Tests:
 # tests that interact directly with the command-line tools rather than using