mirror of
https://github.com/samba-team/samba.git
synced 2025-09-18 09:44:19 +03:00
pytalloc: Test for all Python versions
Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
91b407fc94
commit
e8de2903fb
@@ -148,18 +148,10 @@ def build(bld):
|
|||||||
def test(ctx):
|
def test(ctx):
|
||||||
'''run talloc testsuite'''
|
'''run talloc testsuite'''
|
||||||
import Utils, samba_utils
|
import Utils, samba_utils
|
||||||
env = samba_utils.LOAD_ENVIRONMENT()
|
|
||||||
cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite')
|
cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite')
|
||||||
ret = samba_utils.RUN_COMMAND(cmd)
|
ret = samba_utils.RUN_COMMAND(cmd)
|
||||||
print("testsuite returned %d" % ret)
|
print("testsuite returned %d" % ret)
|
||||||
if 'USING_SYSTEM_PYTALLOC_UTIL' not in env.defines and not env.disable_python:
|
pyret = samba_utils.RUN_PYTHON_TESTS(['test_pytalloc.py'])
|
||||||
cmd = "PYTHONPATH=%s %s test_pytalloc.py" % (
|
|
||||||
os.path.join(Utils.g_module.blddir, 'python'),
|
|
||||||
env['PYTHON'],
|
|
||||||
)
|
|
||||||
pyret = samba_utils.RUN_COMMAND(cmd)
|
|
||||||
else:
|
|
||||||
pyret = 0
|
|
||||||
print("python testsuite returned %d" % pyret)
|
print("python testsuite returned %d" % pyret)
|
||||||
sys.exit(ret or pyret)
|
sys.exit(ret or pyret)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user