diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-08-03 18:03:09 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-08-03 18:03:09 +0100 |
commit | a036a730ca801239b631c275598ae78fc5fff16d (patch) | |
tree | 78043ee8e2430b0fba564419a55b152035db087e | |
parent | 3228b6cf556adfc60228027c56936b1a8fc07f8c (diff) | |
parent | 92f4f39c4b8b6b2054e54e1d30f3b42fdd00b27f (diff) | |
download | obnam-a036a730ca801239b631c275598ae78fc5fff16d.tar.gz |
Merge patch to make crash-test produce bugs more often
-rwxr-xr-x | crash-test | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |