s4-build: fixed some formatting
[abartlet/samba.git/.git] / lib / talloc / wscript
index be80b27a66220df694828973969e1e344f35a75e..9550ea4cc6d83710d20766b65b64e267e5b8e716 100644 (file)
@@ -24,7 +24,7 @@ samba_dist.DIST_DIRS('lib/talloc:. lib/replace:lib/replace buildtools:buildtools
 
 def set_options(opt):
     opt.BUILTIN_DEFAULT('replace')
-    opt.BUNDLED_EXTENSION_DEFAULT('talloc', noextenion='talloc')
+    opt.BUNDLED_EXTENSION_DEFAULT('talloc', noextension='talloc')
     opt.RECURSE('lib/replace')
     opt.add_option('--enable-talloc-compat1',
                    help=("Build talloc 1.x.x compat library [False]"),
@@ -61,8 +61,8 @@ def build(bld):
                           abi_match='talloc* _talloc*',
                           hide_symbols=True,
                           vnum=VERSION,
-                                                 is_bundled=not bld.env.standalone_talloc, 
-                                                 manpages='talloc.3')
+                          is_bundled=not bld.env.standalone_talloc,
+                          manpages='talloc.3')
 
         # should we also install the symlink to libtalloc1.so here?
         bld.SAMBA_LIBRARY('talloc-compat1',
@@ -70,7 +70,7 @@ def build(bld):
                           deps='talloc',
                           enabled = bld.env.TALLOC_COMPAT1,
                           vnum=VERSION,
-                                                 is_bundled=not bld.env.standalone_talloc)
+                          is_bundled=not bld.env.standalone_talloc)
 
     if not getattr(bld.env, '_SAMBA_BUILD_', 0) == 4:
         # s4 already has the talloc testsuite builtin to smbtorture
@@ -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'''