use RUN_COMMAND() to handle signal errors and exit status
def test(ctx):
'''run talloc testsuite'''
- import Utils
+ import Utils, samba_utils
cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite')
- os.system(cmd)
+ ret = samba_utils.RUN_COMMAND(cmd)
+ print("testsuite returned %d" % ret)
+ sys.exit(ret)
def dist():
'''makes a tarball for distribution'''
def test(ctx):
'''run tdb testsuite'''
- import Utils
+ import Utils, samba_utils
cmd = os.path.join(Utils.g_module.blddir, 'tdbtorture')
- os.system(cmd)
+ ret = samba_utils.RUN_COMMAND(cmd)
+ print("testsuite returned %d" % ret)
+ sys.exit(ret)
def dist():
'''makes a tarball for distribution'''
def test(ctx):
'''run ldb testsuite'''
- import Utils
+ import Utils, samba_utils
cmd = 'tests/test-tdb.sh'
- os.system(cmd)
+ ret = samba_utils.RUN_COMMAND(cmd)
+ print("testsuite returned %d" % ret)
+ sys.exit(ret)
def dist():
'''makes a tarball for distribution'''