summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/commontest.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-08-18 17:43:34 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-08-18 17:43:34 +0000
commit3a5a6f654c073308fa4131609b37be88303f2f10 (patch)
tree1080bc19338d700f39bc1026cb5afbdf8134b41c /rdiff-backup/testing/commontest.py
parent138291d78ab8fbf63f3a5a299afcc186641e45ba (diff)
downloadrdiff-backup-3a5a6f654c073308fa4131609b37be88303f2f10.tar.gz
Added tests to find the remote destination restore and no increment restore bugs.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@185 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/commontest.py')
-rw-r--r--rdiff-backup/testing/commontest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rdiff-backup/testing/commontest.py b/rdiff-backup/testing/commontest.py
index dd49394..3933862 100644
--- a/rdiff-backup/testing/commontest.py
+++ b/rdiff-backup/testing/commontest.py
@@ -148,6 +148,7 @@ def InternalRestore(mirror_local, dest_local, mirror_dir, dest_dir, time):
def get_increment_rp(mirror_rp, time):
"""Return increment rp matching time in seconds"""
data_rp = mirror_rp.append("rdiff-backup-data")
+ if not data_rp.isdir(): return None
for filename in data_rp.listdir():
rp = data_rp.append(filename)
if rp.isincfile() and rp.getincbase_str() == "increments":