summaryrefslogtreecommitdiff
path: root/rdiff-backup
diff options
context:
space:
mode:
Diffstat (limited to 'rdiff-backup')
-rw-r--r--rdiff-backup/testing/rdifftest.py12
-rw-r--r--rdiff-backup/testing/robusttest.py4
2 files changed, 8 insertions, 8 deletions
diff --git a/rdiff-backup/testing/rdifftest.py b/rdiff-backup/testing/rdifftest.py
index 93d9f37..68f88a2 100644
--- a/rdiff-backup/testing/rdifftest.py
+++ b/rdiff-backup/testing/rdifftest.py
@@ -48,8 +48,8 @@ class RdiffTest(unittest.TestCase):
assert self.basis.lstat() and self.new.lstat()
self.signature.write_from_fileobj(Rdiff.get_signature(self.basis))
assert self.signature.lstat()
- self.delta.write_from_fileobj(Rdiff.get_delta(self.signature,
- self.new))
+ self.delta.write_from_fileobj(Rdiff.get_delta_sigrp(self.signature,
+ self.new))
assert self.delta.lstat()
Rdiff.patch_action(self.basis, self.delta, self.output).execute()
assert RPath.cmp(self.new, self.output)
@@ -68,8 +68,8 @@ class RdiffTest(unittest.TestCase):
assert self.basis.lstat() and self.new.lstat()
self.signature.write_from_fileobj(Rdiff.get_signature(self.basis))
assert self.signature.lstat()
- self.delta.write_from_fileobj(Rdiff.get_delta(self.signature,
- self.new))
+ self.delta.write_from_fileobj(Rdiff.get_delta_sigrp(self.signature,
+ self.new))
assert self.delta.lstat()
os.system("gzip " + self.delta.path)
os.system("mv %s %s" % (self.delta.path + ".gz", self.delta.path))
@@ -125,8 +125,8 @@ class RdiffTest(unittest.TestCase):
assert self.basis.lstat() and self.new.lstat()
self.signature.write_from_fileobj(Rdiff.get_signature(self.basis))
assert self.signature.lstat()
- self.delta.write_from_fileobj(Rdiff.get_delta(self.signature,
- self.new))
+ self.delta.write_from_fileobj(Rdiff.get_delta_sigrp(self.signature,
+ self.new))
assert self.delta.lstat()
Rdiff.patch_action(self.basis, self.delta).execute()
assert RPath.cmp(self.basis, self.new)
diff --git a/rdiff-backup/testing/robusttest.py b/rdiff-backup/testing/robusttest.py
index 2a54952..912117a 100644
--- a/rdiff-backup/testing/robusttest.py
+++ b/rdiff-backup/testing/robusttest.py
@@ -72,11 +72,11 @@ class SaveStateTest(unittest.TestCase):
Time.setcurtime()
SetConnections.BackupInitConnections(Globals.local_connection,
Globals.local_connection)
- SaveState.init_filenames(None)
+ SaveState.init_filenames()
SaveState.record_last_file_action(last_rorp).execute()
sym_rp = RPath(Globals.local_connection,
- "testfiles/robust/last-file-mirrored.%s.data" %
+ "testfiles/robust/last-file-incremented.%s.data" %
Time.curtimestr)
assert sym_rp.issym()
assert sym_rp.readlink() == "increments/usr/local/bin/ls"