Merge lp:~mwilck/duplicity/0.7-series into lp:~duplicity-team/duplicity/0.7-series

Proposed by Martin Wilck
Status: Merged
Merge reported by: Kenneth Loafman
Merged at revision: not available
Proposed branch: lp:~mwilck/duplicity/0.7-series
Merge into: lp:~duplicity-team/duplicity/0.7-series
Diff against target: 51 lines (+26/-1) (has conflicts)
1 file modified
testing/functional/__init__.py (+26/-1)
Text conflict in testing/functional/__init__.py
To merge this branch: bzr merge lp:~mwilck/duplicity/0.7-series
Reviewer Review Type Date Requested Status
Kenneth Loafman Approve
Review via email: mp+301492@code.launchpad.net

Description of the change

Fix the regression on Trusty.

To post a comment you must log in.
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

You have a conflict in the merge, see above. You need to start with the latest source.

review: Needs Fixing
Revision history for this message
Martin Wilck (mwilck) wrote :

Sorry. I'll be out of office for a week, will look into this later.

Revision history for this message
Martin Wilck (mwilck) wrote :

But it's just a whitespace issue - would it be asked too much that you fix it quickly?

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

I fixed the patch and applied it to 0.7 and 0.8 both.

review: Approve

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 2016-07-28 15:34:42 +0000
+++ testing/functional/__init__.py 2016-07-29 13:50:55 +0000
@@ -39,6 +39,24 @@
3939
40class FunctionalTestCase(DuplicityTestCase):40class FunctionalTestCase(DuplicityTestCase):
4141
42 _setsid_w = None
43
44 @classmethod
45 def _check_setsid(cls):
46 if cls._setsid_w is not None:
47 return
48 if platform.platform().startswith('Linux'):
49 # setsid behavior differs between distributions.
50 # If setsid supports -w ("wait"), use it.
51 import subprocess
52 try:
53 with open("/dev/null", "w") as sink:
54 subprocess.check_call(["setsid", "-w", "ls"], stdout=sink, stderr=sink)
55 except subprocess.CalledProcessError:
56 cls._setsid_w = False
57 else:
58 cls._setsid_w = True
59
42 def setUp(self):60 def setUp(self):
43 super(FunctionalTestCase, self).setUp()61 super(FunctionalTestCase, self).setUp()
4462
@@ -55,6 +73,7 @@
55 if bl:73 if bl:
56 backend_inst.delete(backend_inst.list())74 backend_inst.delete(backend_inst.list())
57 backend_inst.close()75 backend_inst.close()
76 self._check_setsid()
5877
59 def run_duplicity(self, options=[], current_time=None, fail=None,78 def run_duplicity(self, options=[], current_time=None, fail=None,
60 passphrase_input=[]):79 passphrase_input=[]):
@@ -65,7 +84,13 @@
65 # this way we force a failure if duplicity tries to read from the84 # this way we force a failure if duplicity tries to read from the
66 # console unexpectedly (like for gpg password or such).85 # console unexpectedly (like for gpg password or such).
67 if platform.platform().startswith('Linux'):86 if platform.platform().startswith('Linux'):
68 cmd_list = ['setsid']87<<<<<<< TREE
88 cmd_list = ['setsid']
89=======
90 cmd_list = ['setsid']
91 if self._setsid_w:
92 cmd_list.extend(["-w"])
93>>>>>>> MERGE-SOURCE
69 else:94 else:
70 cmd_list = []95 cmd_list = []
71 cmd_list.extend(["duplicity"])96 cmd_list.extend(["duplicity"])

Subscribers

People subscribed via source and target branches