diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-11-01 04:46:16 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-11-01 04:46:16 +0000 |
commit | 07d8d9cb11114ef5f98993e2e50a67762b3d9aaa (patch) | |
tree | 8bb6237a84163ad01d482bb2c5497305e6524f4e /rdiff-backup/testing/commontest.py | |
parent | a5c03feacbbd9361eb3e2abe367b75529c83459b (diff) | |
download | rdiff-backup-07d8d9cb11114ef5f98993e2e50a67762b3d9aaa.tar.gz |
Added --verify and --verify-at-time switches
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@665 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/commontest.py')
-rw-r--r-- | rdiff-backup/testing/commontest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rdiff-backup/testing/commontest.py b/rdiff-backup/testing/commontest.py index b205c0a..27c0406 100644 --- a/rdiff-backup/testing/commontest.py +++ b/rdiff-backup/testing/commontest.py @@ -60,7 +60,7 @@ def rdiff_backup(source_local, dest_local, src_dir, dest_dir, """ 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 @@ def rdiff_backup(source_local, dest_local, src_dir, dest_dir, 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) |