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:
parent
fdad0328e4
commit
bb0017615d
@ -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'''
|
||||
|
@ -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'''
|
||||
|
@ -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'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user