From 7e6dc45f7e61dfad2d56ff58f31664cefb96281c Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Thu, 23 Feb 2023 16:56:30 +1300 Subject: selftest: fix flapping samba-tool drs showrepl test Test should have been using "schema_pair_dc", it was picking this up from the variable env in the loop above it. However, it was hardcoded to use promoted_dc. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15316 Signed-off-by: Rob van der Linde Reviewed-by: Andrew Bartlett Reviewed-by: Joseph Sutton (cherry picked from commit 3687ab318a9553883d8c0d1214e2d49b83ec91ba) Autobuild-User(v4-18-test): Jule Anger Autobuild-Date(v4-18-test): Wed Apr 5 13:02:59 UTC 2023 on atb-devel-224 --- source4/selftest/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 03500373f1d..9f303614613 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -1554,7 +1554,8 @@ planoldpythontestsuite(env, "getnc_schema", # not the set of environments connected with ad_dc. # This will show the replication state of ad_dc -planoldpythontestsuite("promoted_dc:local", "samba_tool_drs_showrepl", +env = "schema_pair_dc" +planoldpythontestsuite("%s:local" % env, "samba_tool_drs_showrepl", extra_path=[os.path.join(samba4srcdir, 'torture/drs/python')], name="samba4.drs.samba_tool_drs_showrepl.python(%s)" % env, environ={'DC1': '$DC_SERVER', 'DC2': '$SERVER'}, -- cgit v1.2.1