1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

waf: fixed exit status of test suites

use RUN_COMMAND() to handle signal errors and exit status
This commit is contained in:
Andrew Tridgell 2010-10-07 12:25:42 +11:00
parent fdad0328e4
commit bb0017615d
3 changed files with 12 additions and 6 deletions

View File

@ -87,9 +87,11 @@ def build(bld):
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'''

View File

@ -110,9 +110,11 @@ def build(bld):
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'''

View File

@ -214,9 +214,11 @@ def build(bld):
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'''