about summary refs log tree commit diff
path: root/pkgs/tools/backup/duplicity/use-installed-scripts-in-test.patch
blob: a3ba142291595c10f5206610bd01a80941803e95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- a/setup.py
+++ b/setup.py
@@ -92,10 +92,6 @@ class TestCommand(test):
                 except Exception:
                     pass

-        os.environ[u'PATH'] = u"%s:%s" % (
-            os.path.abspath(build_scripts_cmd.build_dir),
-            os.environ.get(u'PATH'))
-
         test.run(self)

     def run_tests(self):
--- a/testing/functional/__init__.py
+++ b/testing/functional/__init__.py
@@ -107,7 +107,7 @@ class FunctionalTestCase(DuplicityTestCase):
         if basepython is not None:
             cmd_list.extend([basepython])
             cmd_list.extend([u"-m", u"coverage", u"run", u"--source=duplicity", u"-p"])
-        cmd_list.extend([u"../bin/duplicity"])
+        cmd_list.extend([u"duplicity"])
         cmd_list.extend(options)
         cmd_list.extend([u"-v0"])
         cmd_list.extend([u"--no-print-statistics"])
--- a/testing/functional/test_log.py
+++ b/testing/functional/test_log.py
@@ -47,9 +47,9 @@ class LogTest(FunctionalTestCase):
         # Run actual duplicity command (will fail, because no arguments passed)
         basepython = os.environ.get(u'TOXPYTHON', None)
         if basepython is not None:
-            os.system(u"{} ../bin/duplicity --log-file={} >/dev/null 2>&1".format(basepython, self.logfile))
+            os.system(u"{} duplicity --log-file={} >/dev/null 2>&1".format(basepython, self.logfile))
         else:
-            os.system(u"../bin/duplicity --log-file={} >/dev/null 2>&1".format(self.logfile))
+            os.system(u"duplicity --log-file={} >/dev/null 2>&1".format(self.logfile))
 
         # The format of the file should be:
         # """ERROR 2
--- a/testing/functional/test_rdiffdir.py
+++ b/testing/functional/test_rdiffdir.py
@@ -38,7 +38,7 @@ class RdiffdirTest(FunctionalTestCase):
 
     def run_rdiffdir(self, argstring):
         u"""Run rdiffdir with given arguments"""
-        self.run_cmd(u"../bin/rdiffdir " + argstring)
+        self.run_cmd(u"rdiffdir " + argstring)
 
     def run_cycle(self, dirname_list):
         u"""Run diff/patch cycle on directories in dirname_list"""