selftest: Do not scan the full DB to confirm a specific DN in dbcheck
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jun 2016 01:54:28 +0000 (13:54 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jun 2016 08:28:10 +0000 (10:28 +0200)
This avoids a full DB scan and therefore reduces the test time taken
when we just modified the cn=administrator record.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
testprogs/blackbox/dbcheck-oldrelease.sh

index 779e0503555286e97ae47bc62d62e114952b3d2f..d2226c6ae65f8b504ac72326c0004e6910a39595 100755 (executable)
@@ -227,7 +227,7 @@ check_forced_duplicate_values() {
 # This should 'fail', because it returns the number of modified records
 dbcheck_after_dup() {
     if [ x$RELEASE = x"release-4-1-0rc3" ]; then
-       $PYTHON $BINDIR/samba-tool dbcheck --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb $@
+       $PYTHON $BINDIR/samba-tool dbcheck --fix --yes -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb cn=administrator,cn=users,DC=release-4-1-0rc3,DC=samba,DC=corp $@
     else
        return 1
     fi