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:
c89df54
)
torture-drs: Make the samba4.drs.repl_schema.python emit failures, not errors on...
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 7 Feb 2013 08:35:15 +0000
(19:35 +1100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 22 Feb 2013 08:19:41 +0000
(09:19 +0100)
This then allows this particular failure to be masked with a knownfail.
Andrew Bartlett
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/drs/python/repl_schema.py
patch
|
blob
|
history
diff --git
a/source4/torture/drs/python/repl_schema.py
b/source4/torture/drs/python/repl_schema.py
index 166a0eb77f384bed011813516743fb592b95a7eb..cbed6400d65478a08d826d37873f53054a23d30e 100644
(file)
--- 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"])