summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-06-28 15:26:46 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-06-28 15:26:46 +0200
commit63cfab25e97231cd7508cc58b9ea0944d328748e (patch)
treea728f90e6e2ea7d2c60efdb7b8bd08e0f97081ff /source4/lib
parent43bf8f4546c94d19c4bb203835e91c640b553116 (diff)
downloadsamba-63cfab25e97231cd7508cc58b9ea0944d328748e.tar.gz
samba-63cfab25e97231cd7508cc58b9ea0944d328748e.tar.bz2
samba-63cfab25e97231cd7508cc58b9ea0944d328748e.zip
Non-zero exit code on failure.
(This used to be commit 9c220c0dce31fbe4b2f6433f40a52162d21c03f7)
Diffstat (limited to 'source4/lib')
-rwxr-xr-xsource4/lib/ldb/tests/python/ldap.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py
index aba9581ec5..9d334c5e03 100755
--- a/source4/lib/ldb/tests/python/ldap.py
+++ b/source4/lib/ldb/tests/python/ldap.py
@@ -965,7 +965,6 @@ class BaseDnTests(unittest.TestCase):
attrs=["netlogon", "highestCommittedUSN"])
self.assertEquals(len(res), 0)
-
if not "://" in host:
host = "ldap://%s" % host
@@ -974,5 +973,9 @@ gc_ldb = Ldb("%s:3268" % host, credentials=creds,
session_info=system_session(), lp=lp)
runner = SubunitTestRunner()
-runner.run(unittest.makeSuite(BaseDnTests))
-runner.run(unittest.makeSuite(BasicTests))
+rc = 0
+if not runner.run(unittest.makeSuite(BaseDnTests)).wasSuccessful():
+ rc = 1
+if not runner.run(unittest.makeSuite(BasicTests)).wasSuccessful():
+ rc = 1
+sys.exit(rc)