]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-selftest/drs Allow re-run of DRS tests after failed cleanup
authorAndrew Bartlett <abartlet@samba.org>
Thu, 1 Dec 2022 22:56:38 +0000 (11:56 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 31 Jan 2023 12:50:33 +0000 (12:50 +0000)
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>
source4/torture/drs/python/getnc_exop.py

index 2d58790785f124c03d51f8f70ce161ef3974adf0..885156cc6e20db6d1c48ca78aeeb7bd1ef478a85 100644 (file)
@@ -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"})