summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-14 21:46:20 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-14 21:46:20 +0000
commita046e272f4cf6851beca20e66c1b218af8b08a60 (patch)
tree5dc0c87a445960964e59a41f84a57348788ab3a6
parent9584378d91306ad9b3d8e7dbd110b7c2f472ed4b (diff)
downloadrdiff-backup-a046e272f4cf6851beca20e66c1b218af8b08a60.tar.gz
Small testing updates
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@123 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-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"