mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4-tests: Print out what the error is in delete_force()
Change-Id: Iaa631179dc79fa756416be8eaf8c55e3b0c1a29f Signed-off-by: Kamen Mazdrashki <kamenim@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
039646b3cb
commit
e33c549143
@ -237,5 +237,5 @@ def connect_samdb_ex(samdb_url, lp=None, session_info=None, credentials=None,
|
||||
def delete_force(samdb, dn):
|
||||
try:
|
||||
samdb.delete(dn)
|
||||
except ldb.LdbError, (num, _):
|
||||
assert(num == ldb.ERR_NO_SUCH_OBJECT)
|
||||
except ldb.LdbError, (num, errstr):
|
||||
assert num == ldb.ERR_NO_SUCH_OBJECT, "ldb.delete() failed: %s" % errstr
|
||||
|
Loading…
Reference in New Issue
Block a user