From bb0017615d44b66828c98a408ca15b50956f3e91 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Oct 2010 12:25:42 +1100 Subject: waf: fixed exit status of test suites use RUN_COMMAND() to handle signal errors and exit status --- source4/lib/ldb/wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4') 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''' -- cgit