summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-08-03 21:32:28 +0100
committerLars Wirzenius <liw@liw.fi>2013-08-03 21:32:28 +0100
commit7146230e5061beb258241d077d5b79f545195ccc (patch)
tree02c9e765a2addbcd3ebefdcc2a0d2900fae28bc5
parent3228b6cf556adfc60228027c56936b1a8fc07f8c (diff)
parent19085304801547555f9b16baac09713734634344 (diff)
downloadobnam-7146230e5061beb258241d077d5b79f545195ccc.tar.gz
Make crash-test reproduce "missing node" bug, and trace stuff
-rwxr-xr-xcrash-test12
1 files changed, 9 insertions, 3 deletions
diff --git a/crash-test b/crash-test
index 8224b389..98e77c24 100755
--- a/crash-test
+++ b/crash-test
@@ -34,20 +34,26 @@ 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
+trace = larch, obnamlib
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