diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-06-26 07:23:04 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-06-26 07:23:04 +0000 |
commit | 460ce08ff4d9cb7bd94fd5b1f1f8c015b18880c7 (patch) | |
tree | ce437fabd109c169b368971e03e39508c1209cd9 /rdiff-backup/testing | |
parent | 2a9c3ebc83931e352c7b05fdd5f53f6eafe3e223 (diff) | |
download | rdiff-backup-460ce08ff4d9cb7bd94fd5b1f1f8c015b18880c7.tar.gz |
Various changes for 0.12.0
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@332 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing')
-rw-r--r-- | rdiff-backup/testing/killtest.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rdiff-backup/testing/killtest.py b/rdiff-backup/testing/killtest.py index 3eef746..2c2946b 100644 --- a/rdiff-backup/testing/killtest.py +++ b/rdiff-backup/testing/killtest.py @@ -127,7 +127,7 @@ class KillTest(ProcessFuncs): # The following are lower and upper bounds on the amount of time # rdiff-backup is expected to run. They are used to determine how # long to wait before killing the rdiff-backup process - time_pairs = [(0.0, 3.7), (0.0, 5.7), (0.0, 3.0), (0.0, 5.0), (0.0, 5.0)] + time_pairs = [(0.0, 3.7), (0.0, 3.7), (0.0, 3.0), (0.0, 5.0), (0.0, 5.0)] def setUp(self): """Create killtest? and backup? directories if necessary""" @@ -175,9 +175,10 @@ class KillTest(ProcessFuncs): inc_date_pairs = map(lambda inc: (inc.getinctime(), inc), inclist) inc_date_pairs.sort() - assert inc_date_pairs[-1][0] == curtime, \ - (inc_date_pairs[-1][0], curtime) - if len(inclist) == 2: return 1 + if len(inclist) == 2: + assert inc_date_pairs[-1][0] == curtime, \ + (inc_date_pairs[-1][0], curtime) + return 1 if inc_date_pairs[-1][0] == curtime: result = 0 @@ -235,7 +236,7 @@ class KillTest(ProcessFuncs): elif result == -1: killed_too_soon[1] += 1 self.exec_rb(30000, 1, Local.kt2rp.path, Local.rpout.path) - # Now keep regressing from kt2rp, only staying there at the end + # Now keep regressing from kt3rp, only staying there at the end for i in range(count): result = cycle_once(self.time_pairs[3], 40000, Local.kt3rp, Local.kt2rp) @@ -243,7 +244,7 @@ class KillTest(ProcessFuncs): elif result == -1: killed_too_soon[2] += 1 self.exec_rb(40000, 1, Local.kt3rp.path, Local.rpout.path) - # Now keep regressing from kt2rp, only staying there at the end + # Now keep regressing from kt4rp, only staying there at the end for i in range(count): result = cycle_once(self.time_pairs[4], 50000, Local.kt4rp, Local.kt3rp) |