rdiff-backup-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] Changes to rdiff-backup/testing/finaltest.py


From: Ben Escoto
Subject: [Rdiff-backup-commits] Changes to rdiff-backup/testing/finaltest.py
Date: Sun, 07 Aug 2005 13:43:47 -0400

Index: rdiff-backup/testing/finaltest.py
diff -u rdiff-backup/testing/finaltest.py:1.35 
rdiff-backup/testing/finaltest.py:1.36
--- rdiff-backup/testing/finaltest.py:1.35      Thu Apr  7 19:27:16 2005
+++ rdiff-backup/testing/finaltest.py   Sun Aug  7 17:43:46 2005
@@ -446,7 +446,7 @@
 
 class FinalSelection(PathSetter):
        """Test selection options"""
-       def run(self, cmd):
+       def system(self, cmd):
                print "Executing: ", cmd
                assert not os.system(cmd)
 
@@ -456,7 +456,7 @@
 
                # Test --include option
                assert not \
-                          os.system(self.rb_schema +
+                        self.system(self.rb_schema +
                                                 "--current-time 10000 "
                                                 "--include 
testfiles/increment2/various_file_types "
                                                 "--exclude '**' "
@@ -485,11 +485,11 @@
                # Test selective restoring
                mirror_rp = rpath.RPath(Globals.local_connection, 
"testfiles/output")
                restore_filename = get_increment_rp(mirror_rp, 10000).path
-               self.run(self.rb_schema +
-                                "--include 
testfiles/restoretarget1/various_file_types/"
-                                "regular_file "
-                                "--exclude '**' " +
-                                restore_filename + " testfiles/restoretarget1")
+               self.system(self.rb_schema +
+                                       "--include 
testfiles/restoretarget1/various_file_types/"
+                                       "regular_file "
+                                       "--exclude '**' " +
+                                       restore_filename + " 
testfiles/restoretarget1")
                assert os.lstat("testfiles/restoretarget1/various_file_types/"
                                                "regular_file")
                self.assertRaises(OSError, os.lstat, 
"testfiles/restoretarget1/tester")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]