waf: fixed exit status of test suites
[mat/samba.git] / lib / talloc / wscript
index 4f95da722363f9d8e976ec68dbaf1495b5875707..1670ebe48fa3d915b0049804b59534349b273e39 100644 (file)
@@ -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'''