python: samba.tests: Enable Python 3 tests for ported modules
authorLumir Balhar <lbalhar@redhat.com>
Sat, 10 Dec 2016 14:11:14 +0000 (15:11 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Mar 2017 06:31:11 +0000 (07:31 +0100)
Enable tests with Python 3 for Python 3 compatible modules.

Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
selftest/tests.py

index 103508bdddbeaee5bd8b588efdea1b38d64afb72..77a17a0279ecd4325292240c44ae758294436ff5 100644 (file)
@@ -52,14 +52,14 @@ else:
     planpythontestsuite("none", "subunit.tests.test_suite")
 planpythontestsuite("none", "samba.tests.blackbox.ndrdump")
 planpythontestsuite("none", "api", name="ldb.python", extra_path=['lib/ldb/tests/python'])
-planpythontestsuite("none", "samba.tests.credentials")
+planpythontestsuite("none", "samba.tests.credentials", py3_compatible=True)
 planpythontestsuite("none", "samba.tests.registry")
 planpythontestsuite("none", "samba.tests.auth")
 planpythontestsuite("none", "samba.tests.get_opt")
 planpythontestsuite("none", "samba.tests.security")
 planpythontestsuite("none", "samba.tests.dcerpc.misc")
 planpythontestsuite("none", "samba.tests.dcerpc.integer")
-planpythontestsuite("none", "samba.tests.param")
+planpythontestsuite("none", "samba.tests.param", py3_compatible=True)
 planpythontestsuite("none", "samba.tests.upgrade")
 planpythontestsuite("none", "samba.tests.core")
 planpythontestsuite("none", "samba.tests.provision")
@@ -134,6 +134,7 @@ plantestsuite(
     "script.traffic_summary", "none",
     [os.path.join(srcdir(), "script/tests/test_traffic_summary.sh"),
      configuration])
+planpythontestsuite("none", "samba.tests.glue", py3_compatible=True)
 
 if with_cmocka:
     plantestsuite("samba.unittests.krb5samba", "none",