summaryrefslogtreecommitdiff
path: root/crash-test
diff options
context:
space:
mode:
authorDamien Couroussé <damien@couperin>2013-07-22 18:02:41 +0200
committerDamien Couroussé <damien@couperin>2013-07-22 18:02:41 +0200
commit92f4f39c4b8b6b2054e54e1d30f3b42fdd00b27f (patch)
tree430c84cfa64e1ba3a4751dc30c13c2d8672f1423 /crash-test
parentba4d80e6d8315ba7b05a41008e43fb9b4d185342 (diff)
downloadobnam-92f4f39c4b8b6b2054e54e1d30f3b42fdd00b27f.tar.gz
fix: crash-test
Diffstat (limited to 'crash-test')
-rwxr-xr-xcrash-test11
1 files changed, 8 insertions, 3 deletions
diff --git a/crash-test b/crash-test
index 8224b389..9a70fa62 100755
--- a/crash-test
+++ b/crash-test
@@ -34,20 +34,25 @@ repository = $tempdir/repo
root = $tempdir/data
log = $tempdir/obnam.log
trace = larch
-crash-limit = $N
checkpoint = 1m
lock-timeout = 1
+log-keep = 16
+log-level = debug
EOF
-# Do a minimal backup to make sure the repository works at least once.
+# Do a minimal backup to make sure the repository works at least once, without the crash-limit option
mkdir "$tempdir/data"
./obnam backup --no-default-config --config "$tempdir/conf"
genbackupdata --create=100m "$tempdir/data"
+echo "crash-limit = $N" >> "$tempdir/conf"
+
while true
do
- rm -f "$tempdir/obnam.log"
+ # There's no need to delete this file because the first Exception message
+ # that appears in the file will terminate the test.
+ # rm -f "$tempdir/obnam.log"
echo "Trying backup with at most $N writes to repository"
./obnam force-lock --no-default-config --config "$tempdir/conf" 2>/dev/null