summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-07 12:25:42 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-07 14:29:21 +1100
commitbb0017615d44b66828c98a408ca15b50956f3e91 (patch)
treed3fccf5ebcf544ab36883a79141367331f79bdc0 /source4/lib/ldb
parentfdad0328e4ee4de26e94f9b19a74ded83c5b00ce (diff)
downloadsamba-bb0017615d44b66828c98a408ca15b50956f3e91.tar.gz
samba-bb0017615d44b66828c98a408ca15b50956f3e91.tar.bz2
samba-bb0017615d44b66828c98a408ca15b50956f3e91.zip
waf: fixed exit status of test suites
use RUN_COMMAND() to handle signal errors and exit status
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/wscript6
1 files changed, 4 insertions, 2 deletions
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'''