0.8 test fails with 'duplicity not found' errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Trying to get duplicity updated in Debian/Ubuntu, on the Debian request (https:/
'yes. so far i can't make duplicity 0.8.0 work with python 2.7 which is still
the default version in debian and hence important in my opinion.
(by "does not work" i mean: the built-in test suite fails quite a lot'
Trying on Ubuntu Disco to see how it behave the tests fail with a
$ cd /tmp
$ bzr branch lp:duplicity
$ cd duplicity
$ python2.7 setup.py build --force
$ PYTHONPATH=
(that's on an i386 chroot, path to adapt for amd64)
...
=======
platform linux2 -- Python 2.7.16, pytest-4.6.3, py-1.8.0, pluggy-0.12.0
rootdir: /build/duplicity, inifile: tox.ini, testpaths: testing/unit, testing/functional
collected 438 items
...
-------
...command: "setsid" "-w" "duplicity" "full" "testfiles/select2" "file:/
...cwd: /build/
...output:
setsid: failed to execute duplicity: No such file or directory
...return_val: 1
(the same error is hit using python3.7)
Changed in duplicity: | |
status: | New → Fix Committed |
Changed in duplicity: | |
importance: | Undecided → Medium |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
root cause for this one: the bad assumption that the duplicity/rdiffdir instance to test is actually in the $PATH.
--- a/testing/ functional/ __init_ _.py functional/ __init_ _.py ase(DuplicityTe stCa
cmd_ list.extend( [u"-w"] )
cmd_ list = [] extend( [u"duplicity" ]) extend( [u"../bin/ duplicity" ])
cmd_list. extend( options)
cmd_list. extend( [u"-v0" ])
cmd_list. extend( [u"--no- print-statistic s"])
+++ b/testing/
@@ -101,7 +101,7 @@ class FunctionalTestC
else:
- cmd_list.
+ cmd_list.
--- a/testing/ functional/ test_log. py functional/ test_log. py FunctionalTestC ase):
+++ b/testing/
@@ -39,7 +39,7 @@ class LogTest(
u"""Check notification of a simple error code"""
# Run actual duplicity command (will fail, because no arguments passed) u"duplicity --log-file= /tmp/duplicity. log >/dev/null 2>&1") u"../bin/ duplicity --log-file= /tmp/duplicity. log >/dev/null 2>&1")
- os.system(
+ os.system(
# The format of the file should be:
# """ERROR 2
--- a/testing/ functional/ test_rdiffdir. py functional/ test_rdiffdir. py FunctionalTestC ase):
+++ b/testing/
@@ -34,7 +34,7 @@ class RdiffdirTest(
def run_rdiffdir(self, argstring): cmd(u"rdiffdir " + argstring) cmd(u". ./bin/rdiffdir " + argstring)
u"""Run rdiffdir with given arguments"""
- self.run_
+ self.run_
def run_cycle(self, dirname_list):
u"""Run diff/patch cycle on directories in dirname_list"""