mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Non-zero exit code on failure.
(This used to be commit 9c220c0dce31fbe4b2f6433f40a52162d21c03f7)
This commit is contained in:
parent
43bf8f4546
commit
63cfab25e9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user