summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-06 19:12:46 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-10 19:38:24 +0100
commit96e6acc6b552072af6a9e2bc64fbb05d5c7f7322 (patch)
tree56de97174dccf39583da0cf957d36e5a7e2997c2 /tests
parent05925cc15a5905751d070c5c89af43e1b182f1f7 (diff)
downloadlorry-96e6acc6b552072af6a9e2bc64fbb05d5c7f7322.tar.gz
tests: Check update counts in git-backup-on-error test cases
Diffstat (limited to 'tests')
-rwxr-xr-xtests/git-backup-on-error-multiple-backups.script1
-rw-r--r--tests/git-backup-on-error-multiple-backups.stdout1
-rwxr-xr-xtests/git-backup-on-error-single-backup.script1
-rw-r--r--tests/git-backup-on-error-single-backup.stdout1
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/git-backup-on-error-multiple-backups.script b/tests/git-backup-on-error-multiple-backups.script
index a7e5148..763ff3f 100755
--- a/tests/git-backup-on-error-multiple-backups.script
+++ b/tests/git-backup-on-error-multiple-backups.script
@@ -51,4 +51,5 @@ then
exit 1
else
find "$workdir/git-backup-test-repo" | LC_ALL=C sort | normalize
+ grep -H . "$workdir/git-backup-test-repo/git"*"/lorry-update-count" | normalize
fi
diff --git a/tests/git-backup-on-error-multiple-backups.stdout b/tests/git-backup-on-error-multiple-backups.stdout
index 9e44fde..5b1709c 100644
--- a/tests/git-backup-on-error-multiple-backups.stdout
+++ b/tests/git-backup-on-error-multiple-backups.stdout
@@ -41,3 +41,4 @@ DATADIR/work-dir/git-backup-test-repo/git-post-fail-DATETIME/packed-refs
DATADIR/work-dir/git-backup-test-repo/git-post-fail-DATETIME/refs
DATADIR/work-dir/git-backup-test-repo/git-post-fail-DATETIME/refs/heads
DATADIR/work-dir/git-backup-test-repo/git-post-fail-DATETIME/refs/tags
+DATADIR/work-dir/git-backup-test-repo/git-a/lorry-update-count:1
diff --git a/tests/git-backup-on-error-single-backup.script b/tests/git-backup-on-error-single-backup.script
index b69f612..f66103a 100755
--- a/tests/git-backup-on-error-single-backup.script
+++ b/tests/git-backup-on-error-single-backup.script
@@ -50,4 +50,5 @@ then
exit 1
else
find "$workdir/git-backup-test-repo" | LC_ALL=C sort | normalize
+ grep -H . "$workdir/git-backup-test-repo/git"*"/lorry-update-count" | normalize
fi
diff --git a/tests/git-backup-on-error-single-backup.stdout b/tests/git-backup-on-error-single-backup.stdout
index d2beacd..1c56b6a 100644
--- a/tests/git-backup-on-error-single-backup.stdout
+++ b/tests/git-backup-on-error-single-backup.stdout
@@ -41,3 +41,4 @@ DATADIR/work-dir/git-backup-test-repo/git-post-fail/packed-refs
DATADIR/work-dir/git-backup-test-repo/git-post-fail/refs
DATADIR/work-dir/git-backup-test-repo/git-post-fail/refs/heads
DATADIR/work-dir/git-backup-test-repo/git-post-fail/refs/tags
+DATADIR/work-dir/git-backup-test-repo/git-a/lorry-update-count:1