diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-07 12:25:42 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-07 14:29:21 +1100 |
commit | bb0017615d44b66828c98a408ca15b50956f3e91 (patch) | |
tree | d3fccf5ebcf544ab36883a79141367331f79bdc0 /lib/talloc | |
parent | fdad0328e4ee4de26e94f9b19a74ded83c5b00ce (diff) | |
download | samba-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 'lib/talloc')
-rw-r--r-- | lib/talloc/wscript | 6 |
1 files changed, 4 insertions, 2 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''' |