diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-03-02 07:09:08 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-03-02 07:09:08 +0000 |
commit | 3f1a6c04e8ec15e9948539a4714e9e7e90c8944a (patch) | |
tree | a75563b8f1492c6fcd557676fb69af5a06322a57 /rdiff-backup/testing/finaltest.py | |
parent | 3f23be3b6e8f61de2ef2d8408c474e22df8cfeb9 (diff) | |
download | rdiff-backup-3f1a6c04e8ec15e9948539a4714e9e7e90c8944a.tar.gz |
Final check in for version 0.11.2
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@285 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/finaltest.py')
-rw-r--r-- | rdiff-backup/testing/finaltest.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/rdiff-backup/testing/finaltest.py b/rdiff-backup/testing/finaltest.py index 7945eb5..301bb1e 100644 --- a/rdiff-backup/testing/finaltest.py +++ b/rdiff-backup/testing/finaltest.py @@ -154,7 +154,7 @@ class PathSetter(unittest.TestCase): "testfiles/output/rdiff-backup-data/increments") self.exec_rb(None, timbar_paths[0]) self.refresh(Local.timbar_in, Local.timbar_out) - assert rpath.cmp_with_attribs(Local.timbar_in, Local.timbar_out) + assert Local.timbar_in.equal_loose(Local.timbar_out) self.exec_rb_restore(25000, 'testfiles/output/various_file_types', 'testfiles/vft2_out') @@ -207,14 +207,30 @@ class Final(PathSetter): def testProcLocal(self): """Test initial backup of /proc locally""" Myrm("testfiles/procoutput") + procout = rpath.RPath(Globals.local_connection, 'testfiles/procoutput') self.set_connections(None, None, None, None) - self.exec_rb(None, '../../../../../../proc', 'testfiles/procoutput') + self.exec_rb(10000, '../../../../../../proc', procout.path) + time.sleep(1) + self.exec_rb(20000, '../../../../../../proc', procout.path) + time.sleep(1) + self.exec_rb(30000, Local.inc1rp.path, procout.path) + assert CompareRecursive(Local.inc1rp, procout) + time.sleep(1) + self.exec_rb(40000, '../../../../../../proc', procout.path) def testProcRemote(self): """Test mirroring proc remote""" Myrm("testfiles/procoutput") + procout = rpath.RPath(Globals.local_connection, 'testfiles/procoutput') self.set_connections(None, None, "test2/tmp/", "../../") - self.exec_rb(None, '../../../../../../proc', 'testfiles/procoutput') + self.exec_rb(10000, '../../../../../../proc', procout.path) + time.sleep(1) + self.exec_rb(20000, '../../../../../../proc', procout.path) + time.sleep(1) + self.exec_rb(30000, Local.inc1rp.path, procout.path) + assert CompareRecursive(Local.inc1rp, procout) + time.sleep(1) + self.exec_rb(40000, '../../../../../../proc', procout.path) def testProcRemote2(self): """Test mirroring proc, this time when proc is remote, dest local""" |