~davi/kewpie/qp-fixes

« back to all changes in this revision

Viewing changes to percona_tests/xtrabackup_main/bug810269_test.py

  • Committer: Patrick Crews
  • Date: 2012-02-01 21:50:18 UTC
  • mfrom: (103.1.1 kewpie)
  • Revision ID: gleebix@gmail.com-20120201215018-ecby526e4optolcj
Updated xtrabackup tests + code

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
# here.  We will be using a generic / vanilla backup dir
34
34
backup_path = None
35
35
 
 
36
def skip_checks(system_manager):
 
37
    if not system_manager.code_manager.test_tree.innodb_version:
 
38
            return True, "Test requires XtraDB or Innodb plugin."
 
39
    return False, ''
 
40
 
 
41
 
36
42
class basicTest(mysqlBaseTestCase):
37
43
 
38
44
    def setUp(self):
50
56
        retcode, result = self.execute_queries(queries, server)
51
57
        self.assertEqual(retcode, 0, msg=result)
52
58
 
53
 
    def test_ib_stream(self):
 
59
    def test_bug810269(self):
54
60
            """ Bug #665210: tar4ibd does not support innodb row_format=compressed
55
61
                Bug #810269: tar4ibd does not check for doublewrite buffer pages
56
62
            """
57
63
 
 
64
            self.servers = servers       
 
65
            master_server = servers[0]
 
66
            logging = test_executor.logging
58
67
            innobackupex = test_executor.system_manager.innobackupex_path
59
68
            xtrabackup = test_executor.system_manager.xtrabackup_path
60
 
            master_server = servers[0] # assumption that this is 'master'
61
69
            backup_path = os.path.join(master_server.vardir, '_xtrabackup')
62
70
            tar_file_path = os.path.join(backup_path,'out.tar')
63
71
            output_path = os.path.join(master_server.vardir, 'innobackupex.out')
157
165
            self.assertEqual(orig_checksum, restored_checksum, "%s || %s" %(orig_checksum, restored_checksum))
158
166
 
159
167
              
160
 
    def tearDown(self):
161
 
            server_manager.reset_servers(test_executor.name)
162