summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2022-12-02 11:56:38 +1300
committerJule Anger <janger@samba.org>2023-02-03 09:35:08 +0000
commitb0bbea3fdcdbca0629cbb2f12b5378b8ba7ac423 (patch)
tree2dbfa89489884cd61e8479a9a56f55ccc1bdb32e
parent2cb965046b88a7755369dd5c48809d7c76929d7e (diff)
downloadsamba-b0bbea3fdcdbca0629cbb2f12b5378b8ba7ac423.tar.gz
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 3204d1350b21704474e577cb5f3f2439b673c421)
-rw-r--r--source4/torture/drs/python/getnc_exop.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/drs/python/getnc_exop.py b/source4/torture/drs/python/getnc_exop.py
index 2d58790785f..885156cc6e2 100644
--- a/source4/torture/drs/python/getnc_exop.py
+++ b/source4/torture/drs/python/getnc_exop.py
@@ -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"})