~mterry/duplicity/gdrive

« back to all changes in this revision

Viewing changes to testing/tests/restarttest.py

  • Committer: Kenneth Loafman
  • Date: 2011-11-17 15:39:27 UTC
  • mfrom: (800.1.24 duplicity)
  • Revision ID: kenneth@loafman.com-20111117153927-5usgw14t1wt2b9ub
Merged in lp:~mterry/duplicity/ship-tests and moved a couple of things around to get manual tests working

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# along with duplicity; if not, write to the Free Software Foundation,
20
20
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
21
 
22
 
import config
 
22
import helper
23
23
import sys, os, unittest
24
24
 
25
25
import duplicity.backend
26
26
from duplicity import path
27
27
 
28
 
config.setup()
 
28
helper.setup()
29
29
 
30
30
# This can be changed to select the URL to use
31
31
backend_url = "file://testfiles/output"
58
58
        Run duplicity binary with given arguments and options
59
59
        """
60
60
        options.append("--archive-dir testfiles/cache")
61
 
        cmd_list = ["../duplicity-bin"]
 
61
        cmd_list = ["duplicity"]
62
62
        cmd_list.extend(options + ["--allow-source-mismatch"])
63
63
        if current_time:
64
64
            cmd_list.append("--current-time %s" % (current_time,))
154
154
        Test basic Checkpoint/Restart
155
155
        """
156
156
        excludes = ["--exclude **/output",
157
 
                    "--exclude **/cache",
158
 
                    "--exclude **/root1",
159
 
                    "--exclude **/root2",]
 
157
                    "--exclude **/cache",]
160
158
        self.deltmp()
161
159
        # we know we're going to fail this one, its forced
162
160
        try:
172
170
        Test multiple Checkpoint/Restart
173
171
        """
174
172
        excludes = ["--exclude **/output",
175
 
                    "--exclude **/cache",
176
 
                    "--exclude **/root1",
177
 
                    "--exclude **/root2",]
 
173
                    "--exclude **/cache",]
178
174
        self.deltmp()
179
175
        # we know we're going to fail these, they are forced
180
176
        try:
199
195
        Caused when duplicity fails before the first transfer.
200
196
        """
201
197
        excludes = ["--exclude **/output",
202
 
                    "--exclude **/cache",
203
 
                    "--exclude **/root1",
204
 
                    "--exclude **/root2",]
 
198
                    "--exclude **/cache",]
205
199
        self.deltmp()
206
200
        # we know we're going to fail these, they are forced
207
201
        try: