mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
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>
This commit is contained in:
parent
c89df54423
commit
59e8321324
@ -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"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user