/[rdiff-backup]/rdiff-backup/testing/commontest.py
ViewVC logotype

Diff of /rdiff-backup/testing/commontest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.34 by bescoto, Tue Oct 25 01:57:12 2005 UTC revision 1.35 by bescoto, Mon Oct 31 04:53:31 2005 UTC
# Line 40  def MakeOutputDir(): Line 40  def MakeOutputDir():
40          return rp          return rp
41    
42  def rdiff_backup(source_local, dest_local, src_dir, dest_dir,  def rdiff_backup(source_local, dest_local, src_dir, dest_dir,
43                                   current_time = None, extra_options = ""):                                   current_time = None, extra_options = "",
44                                     check_return_val = 1):
45          """Run rdiff-backup with the given options          """Run rdiff-backup with the given options
46    
47          source_local and dest_local are boolean values.  If either is          source_local and dest_local are boolean values.  If either is
# Line 70  def rdiff_backup(source_local, dest_loca Line 71  def rdiff_backup(source_local, dest_loca
71          cmdargs.extend([src_dir, dest_dir])          cmdargs.extend([src_dir, dest_dir])
72          cmdline = " ".join(cmdargs)          cmdline = " ".join(cmdargs)
73          print "Executing: ", cmdline          print "Executing: ", cmdline
74          assert not os.system(cmdline)          ret_val = os.system(cmdline)
75            if check_return_val: assert not ret_val, ret_val
76            return ret_val
77    
78  def InternalBackup(source_local, dest_local, src_dir, dest_dir,  def InternalBackup(source_local, dest_local, src_dir, dest_dir,
79                                     current_time = None, eas = None, acls = None):                                     current_time = None, eas = None, acls = None):

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26