From 769908540f047f24fcd3c57a90843abca85252b2 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 30 May 2012 12:21:42 +0200 Subject: s4:selftest: change the blackbox.samba_tool_demote test to use a binary mapping for smbclient --- source4/selftest/tests.py | 2 +- source4/utils/tests/test_demote.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index ac68fb0562..9a6af526cc 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -521,7 +521,7 @@ plantestsuite("samba4.blackbox.provision-backend", "none", ["PYTHON=%s" % python plantestsuite("samba4.blackbox.renamedc.sh", "none", ["PYTHON=%s" % python, os.path.join(bbdir, "renamedc.sh"), '$PREFIX/provision']) # Demote the vampire DC, it must be the last test on the VAMPIRE DC -plantestsuite("samba4.blackbox.samba_tool_demote(vampire_dc)", "vampire_dc", [os.path.join(samba4srcdir, "utils/tests/test_demote.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$DOMAIN', '$DC_SERVER', '$PREFIX/vampire_dc']) +plantestsuite("samba4.blackbox.samba_tool_demote(vampire_dc)", "vampire_dc", [os.path.join(samba4srcdir, "utils/tests/test_demote.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$DOMAIN', '$DC_SERVER', '$PREFIX/vampire_dc', smbclient]) # check the databases are all OK. PLEASE LEAVE THIS AS THE LAST TEST for env in ["dc", "fl2000dc", "fl2003dc", "fl2008r2dc"]: plantestsuite("samba4.blackbox.dbcheck(%s)" % env, env + ":local" , ["PYTHON=%s" % python, os.path.join(bbdir, "dbcheck.sh"), '$PREFIX/provision', configuration]) diff --git a/source4/utils/tests/test_demote.sh b/source4/utils/tests/test_demote.sh index 3d255ed91f..0c2c03c98b 100755 --- a/source4/utils/tests/test_demote.sh +++ b/source4/utils/tests/test_demote.sh @@ -8,12 +8,12 @@ PASSWORD=$4 DOMAIN=$5 DC=$6 PROV=$7 -shift 7 +smbclient=$8 +shift 8 failed=0 samba4bindir="$BINDIR" -smbclient="$samba4bindir/smbclient" samba_tool="$samba4bindir/samba-tool" testit() { -- cgit