selftest: Split out dbcheck runs from dangling_multi_valued test
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Oct 2017 19:21:15 +0000 (08:21 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 23 Nov 2017 12:26:22 +0000 (13:26 +0100)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/knownfail
testprogs/blackbox/dbcheck-links.sh

index 3c910fb3d6fb43d81f307a0612f7c80a59e09cfc..a28329cd449c164c90b1930352fde58a6bb2df79 100644 (file)
 ^samba3.smb2.credits.session_setup_credits_granted.*
 ^samba3.smb2.credits.single_req_credits_granted.*
 ^samba3.smb2.credits.skipped_mid.*
-^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_dbcheck
+^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dbcheck_dangling_multi_valued_clean
 ^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_check_missing
 #
 # rap password tests don't function in the ad_dc_ntvfs:local environment
index 655e1aa2de0dc45a1834625f83f700ac315378dd..208ec00dfc092b0bc67a3d758aff42b543683ce6 100755 (executable)
@@ -263,7 +263,7 @@ dangling_one_way_link() {
     fi
 }
 
-dangling_multi_valued() {
+add_dangling_multi_valued() {
     # multi1 - All 4 backlinks
     # multi2 - Missing all 4 backlinks
     # multi3 - Missing 2 backlinks
@@ -292,6 +292,9 @@ dangling_multi_valued() {
     if [ "$?" != "0" ]; then
        return 1
     fi
+}
+
+dbcheck_dangling_multi_valued() {
 
     $PYTHON $BINDIR/samba-tool dbcheck -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --fix --yes
     if [ "$?" != "1" ]; then
@@ -358,11 +361,12 @@ if [ -d $release_dir ]; then
     testit "dangling_one_way_dn" dangling_one_way_dn
     testit "deleted_one_way_dn" deleted_one_way_dn
     testit "dbcheck_clean3" dbcheck_clean
-    testit "dangling_multi_valued" dangling_multi_valued
+    testit "add_dangling_multi_valued" add_dangling_multi_valued
+    testit "dbcheck_dangling_multi_valued" dbcheck_dangling_multi_valued
     testit "dangling_multi_valued_check_missing" dangling_multi_valued_check_missing
     testit "dangling_multi_valued_check_equal_or_too_many" dangling_multi_valued_check_equal_or_too_many
     # Currently this cannot pass
-    testit "dangling_multi_valued_dbcheck" dbcheck_clean
+    testit "dbcheck_dangling_multi_valued_clean" dbcheck_clean
 else
     subunit_start_test $RELEASE
     subunit_skip_test $RELEASE <<EOF