Merge lp:~stragerneds/duplicity/duplicity into lp:~duplicity-team/duplicity/0.8-series

Proposed by Matthew Glazar
Status: Merged
Merged at revision: 1368
Proposed branch: lp:~stragerneds/duplicity/duplicity
Merge into: lp:~duplicity-team/duplicity/0.8-series
Diff against target: 32 lines (+10/-5)
1 file modified
testing/functional/__init__.py (+10/-5)
To merge this branch: bzr merge lp:~stragerneds/duplicity/duplicity
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+367934@code.launchpad.net
To post a comment you must log in.
lp:~stragerneds/duplicity/duplicity updated
1367. By Kenneth Loafman

* Fix TestGlobToRegex.test_glob_to_regex for py3.6 and above
  - see https://bugs.python.org/issue29995 for details

1368. By Kenneth Loafman

* Merged in lp:~stragerneds/duplicity/duplicity
  - improve test backup speed
  - insure all test output is read

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'testing/functional/__init__.py'
--- testing/functional/__init__.py 2018-11-29 19:00:15 +0000
+++ testing/functional/__init__.py 2019-05-26 00:32:44 +0000
@@ -145,9 +145,10 @@
145145
146 # if the command fails, we need to clear its output146 # if the command fails, we need to clear its output
147 # so it will terminate cleanly.147 # so it will terminate cleanly.
148 lines = []148 child.expect_exact(pexpect.EOF)
149 while child.isalive():149 lines = child.before.splitlines()
150 lines.append(child.readline())150 child.wait()
151 child.ptyproc.delayafterclose = 0.0
151 return_val = child.exitstatus152 return_val = child.exitstatus
152153
153 if fail:154 if fail:
@@ -171,8 +172,12 @@
171 # If a chain ends with time X and the next full chain begins at time X,172 # If a chain ends with time X and the next full chain begins at time X,
172 # we may trigger an assert in collections.py. If needed, sleep to173 # we may trigger an assert in collections.py. If needed, sleep to
173 # avoid such problems174 # avoid such problems
174 if self.last_backup == int(time.time()):175 now = time.time()
175 time.sleep(1)176 if self.last_backup == int(now):
177 seconds_to_sleep = (self.last_backup + 1) - now
178 assert 0 <= seconds_to_sleep <= 1
179 time.sleep(seconds_to_sleep)
180 assert int(time.time()) != self.last_backup
176181
177 result = self.run_duplicity(options=options, **kwargs)182 result = self.run_duplicity(options=options, **kwargs)
178 self.last_backup = int(time.time())183 self.last_backup = int(time.time())

Subscribers

People subscribed via source and target branches