~davi/kewpie/qp-fixes

« back to all changes in this revision

Viewing changes to percona_tests/xtrabackup_main/bug817132_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:
26
26
 
27
27
from lib.util.mysqlBaseTestCase import mysqlBaseTestCase
28
28
 
 
29
def skip_checks(system_manager):
 
30
    """ We do some pre-test checks to see if we need to skip a test or not """
 
31
    
 
32
    # innobackupex --copy-back without explicit --ibbackup specification
 
33
    # defaults to 'xtrabackup'. So any build configurations other than xtradb51
 
34
    # would fail in Jenkins.
 
35
    if os.path.basename(system_manager.xtrabackup_path) != "xtrabackup":
 
36
        return True, "Test only works with xtradb51. --ibbackup spec defaults to xtrabackup"
 
37
    else:
 
38
        return False, ''
 
39
 
29
40
server_requirements = [[]]
30
41
servers = []
31
42
server_manager = None
124
135
            self.assertEqual(output, expected_output, msg = "%s || %s" %(output, expected_output))
125
136
 
126
137
              
127
 
    def tearDown(self):
128
 
            server_manager.reset_servers(test_executor.name)
129
 
 
130