summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/talloc/wscript6
-rw-r--r--lib/tdb/wscript6
-rw-r--r--source4/lib/ldb/wscript6
3 files changed, 12 insertions, 6 deletions
diff --git a/lib/talloc/wscript b/lib/talloc/wscript
index 4f95da7223..1670ebe48f 100644
--- a/lib/talloc/wscript
+++ b/lib/talloc/wscript
@@ -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'''
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index 53f81fe49b..6e00f3c917 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -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'''
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index ddf12835aa..cf013ce1f2 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -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'''