diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-02-07 19:35:15 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-02-22 09:19:41 +0100 |
commit | 59e8321324fe6b652724e71ba1df9da80f30cc67 (patch) | |
tree | 8b746eaee30b2844f692d01dc6a99c764f5b1a9e /source4/torture | |
parent | c89df544239dbaedbb7f231f4556aff8e4a3f288 (diff) | |
download | samba-59e8321324fe6b652724e71ba1df9da80f30cc67.tar.gz samba-59e8321324fe6b652724e71ba1df9da80f30cc67.tar.bz2 samba-59e8321324fe6b652724e71ba1df9da80f30cc67.zip |
torture-drs: Make the samba4.drs.repl_schema.python emit failures, not errors on add failure
This then allows this particular failure to be masked with a knownfail.
Andrew Bartlett
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/drs/python/repl_schema.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py index 166a0eb77f..cbed6400d6 100644 --- a/source4/torture/drs/python/repl_schema.py +++ b/source4/torture/drs/python/repl_schema.py @@ -84,7 +84,11 @@ class DrsReplSchemaTestCase(drs_base.DrsBaseTestCase): if not attrs is None: rec.update(attrs) # add it to the Schema - ldb_ctx.add(rec) + try: + ldb_ctx.add(rec) + except LdbError, (enum, estr): + self.fail("Adding record failed with %d/%s" % (enum, estr)) + self._ldap_schemaUpdateNow(ldb_ctx) return (rec["lDAPDisplayName"], rec["dn"]) |