summaryrefslogtreecommitdiff
path: root/tests/git-backup-on-error.script
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2013-12-10 11:43:01 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2013-12-11 11:57:52 +0000
commit17936a0dc7d75eb1e93a37bcf5959f03add53c10 (patch)
tree3a33a96e36d8a39f27df0fb4e7ea36b4f107ab08 /tests/git-backup-on-error.script
parente2256fcb89c9497c29d75be6f04eda9cfc2940f9 (diff)
downloadlorry-17936a0dc7d75eb1e93a37bcf5959f03add53c10.tar.gz
Fix git-backup-on-error test
This test didn't have the correct expected output. This commit corrects the expected output and amends the test so that it fails if there are no pack files in the test backup repo.
Diffstat (limited to 'tests/git-backup-on-error.script')
-rwxr-xr-xtests/git-backup-on-error.script1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/git-backup-on-error.script b/tests/git-backup-on-error.script
index fbb3368..544a392 100755
--- a/tests/git-backup-on-error.script
+++ b/tests/git-backup-on-error.script
@@ -30,6 +30,7 @@ normalize() {
DATETIMESPEC='[0-9]*-[0-9]*-[0-9]*-[0-9]*:[0-9]*:[0-9]*'
sed -r -e "s|git-pre-update-$DATETIMESPEC|git-pre-update-DATETIME|g" \
-e "s|git-post-fail-$DATETIMESPEC|git-post-fail-DATETIME|g" \
+ -e "s/pack-[0-9a-z]+\.(idx|pack)$/pack-file/" \
-e '/hooks\/.*\.sample/d' \
-e "s|$DATADIR|DATADIR|g" "$@"
}