summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-09-12 14:17:35 +1200
committerStefan Metzmacher <metze@samba.org>2017-09-14 18:43:16 +0200
commitb0f22f2661f5712ac00cf221e734b99e8d5d04fa (patch)
tree9a2c2f1fde46019f44ac8d22ff57a17d5dee4f26 /testprogs
parent5d9bb80a027ba2b03c97d80c10173f946c758f69 (diff)
downloadsamba-b0f22f2661f5712ac00cf221e734b99e8d5d04fa.tar.gz
selftest: reindex in dbcheck-oldrelease after modifying the backend DB
Modifying the backend DB is not a supported operation, but helps us create test situations. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/dbcheck-oldrelease.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/testprogs/blackbox/dbcheck-oldrelease.sh b/testprogs/blackbox/dbcheck-oldrelease.sh
index ecab0030d68..a525f547bc9 100755
--- a/testprogs/blackbox/dbcheck-oldrelease.sh
+++ b/testprogs/blackbox/dbcheck-oldrelease.sh
@@ -404,6 +404,9 @@ if [ -d $release_dir ]; then
testit_expect_failure "dbcheck2" dbcheck2
testit "dbcheck_clean2" dbcheck_clean2
testit "rm_deleted_objects" rm_deleted_objects
+ # We must re-index again because rm_deleted_objects went behind
+ # the back of the main sam.ldb.
+ testit "reindex2" reindex
testit_expect_failure "dbcheck3" dbcheck3
testit "dbcheck_clean3" dbcheck_clean3
testit "check_expected_after_deleted_objects" check_expected_after_deleted_objects