git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6479f48
)
Non-zero exit code on failure.
author
Jelmer Vernooij
<jelmer@samba.org>
Sat, 28 Jun 2008 13:26:46 +0000
(15:26 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sat, 28 Jun 2008 13:26:46 +0000
(15:26 +0200)
source/lib/ldb/tests/python/ldap.py
patch
|
blob
|
history
diff --git
a/source/lib/ldb/tests/python/ldap.py
b/source/lib/ldb/tests/python/ldap.py
index aba9581ec5775844c0c62cc5ffcac00be1ab24f2..9d334c5e03b8713bddd927e6f51a45a86dc380c5 100755
(executable)
--- a/
source/lib/ldb/tests/python/ldap.py
+++ b/
source/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)