/[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.35 by bescoto, Mon Oct 31 04:53:31 2005 UTC revision 1.36 by bescoto, Tue Nov 1 04:46:16 2005 UTC
# Line 60  def rdiff_backup(source_local, dest_loca Line 60  def rdiff_backup(source_local, dest_loca
60          """          """
61          if not source_local:          if not source_local:
62                  src_dir = ("'cd test1; ../%s --server'::../%s" % (RBBin, src_dir))                  src_dir = ("'cd test1; ../%s --server'::../%s" % (RBBin, src_dir))
63          if not dest_local:          if dest_dir and not dest_local:
64                  dest_dir = ("'cd test2/tmp; ../../%s --server'::../../%s" %                  dest_dir = ("'cd test2/tmp; ../../%s --server'::../../%s" %
65                                          (RBBin, dest_dir))                                          (RBBin, dest_dir))
66    
# Line 68  def rdiff_backup(source_local, dest_loca Line 68  def rdiff_backup(source_local, dest_loca
68          if not (source_local and dest_local): cmdargs.append("--remote-schema %s")          if not (source_local and dest_local): cmdargs.append("--remote-schema %s")
69    
70          if current_time: cmdargs.append("--current-time %s" % current_time)          if current_time: cmdargs.append("--current-time %s" % current_time)
71          cmdargs.extend([src_dir, dest_dir])          cmdargs.append(src_dir)
72            if dest_dir: cmdargs.append(dest_dir)
73          cmdline = " ".join(cmdargs)          cmdline = " ".join(cmdargs)
74          print "Executing: ", cmdline          print "Executing: ", cmdline
75          ret_val = os.system(cmdline)          ret_val = os.system(cmdline)

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

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