[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-commits] Changes to rdiff-backup/testing/commontest.py
From: |
Ben Escoto |
Subject: |
[Rdiff-backup-commits] Changes to rdiff-backup/testing/commontest.py |
Date: |
Mon, 31 Oct 2005 23:46:22 -0500 |
Index: rdiff-backup/testing/commontest.py
diff -u rdiff-backup/testing/commontest.py:1.35
rdiff-backup/testing/commontest.py:1.36
--- rdiff-backup/testing/commontest.py:1.35 Mon Oct 31 04:53:31 2005
+++ rdiff-backup/testing/commontest.py Tue Nov 1 04:46:16 2005
@@ -60,7 +60,7 @@
"""
if not source_local:
src_dir = ("'cd test1; ../%s --server'::../%s" % (RBBin,
src_dir))
- if not dest_local:
+ if dest_dir and not dest_local:
dest_dir = ("'cd test2/tmp; ../../%s --server'::../../%s" %
(RBBin, dest_dir))
@@ -68,7 +68,8 @@
if not (source_local and dest_local): cmdargs.append("--remote-schema
%s")
if current_time: cmdargs.append("--current-time %s" % current_time)
- cmdargs.extend([src_dir, dest_dir])
+ cmdargs.append(src_dir)
+ if dest_dir: cmdargs.append(dest_dir)
cmdline = " ".join(cmdargs)
print "Executing: ", cmdline
ret_val = os.system(cmdline)