mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4-selftest/drs Allow re-run of DRS tests after failed cleanup
Using a random base is a useful start, even if the better solution also includes a self.AddCleanup()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10635
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 3204d1350b
)
This commit is contained in:
parent
11540d828f
commit
7712ef7288
@ -81,7 +81,8 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
|
||||
def setUp(self):
|
||||
super(DrsReplicaSyncTestCase, self).setUp()
|
||||
self.base_dn = self.ldb_dc1.get_default_basedn()
|
||||
self.ou = "OU=test_getncchanges,%s" % self.base_dn
|
||||
self.ou = "OU=test_getncchanges%d,%s" % (random.randint(0, 4294967295),
|
||||
self.base_dn)
|
||||
self.ldb_dc1.add({
|
||||
"dn": self.ou,
|
||||
"objectclass": "organizationalUnit"})
|
||||
|
Loading…
Reference in New Issue
Block a user