~longbow/kewpie/py_pam

« back to all changes in this revision

Viewing changes to percona_tests/xtrabackup_main/bug729843_test.py

  • Committer: Patrick Crews
  • Date: 2012-01-10 20:59:28 UTC
  • Revision ID: gleebix@gmail.com-20120110205928-3sh8g28u54y4lytv
Further updates to get xtrabackup tests running on Jenkins.  Allow for variable failure code in test case

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                  ]
75
75
            cmd = " ".join(cmd)
76
76
            retcode, output = self.execute_cmd(cmd, output_path, exec_path, True)
77
 
            self.assertEqual(retcode,255,msg = "Retcode: %d || %s" %(retcode,output))
 
77
            # It seems the retcode varies between 9 and 255 : /
 
78
            accepted_values = [9,255]
 
79
            self.assertTrue(retcode in accepted_values ,msg = "Retcode: %d || %s" %(retcode,output))
78
80
            self.assertTrue("--password=secret" not in output, msg = output)
79
81
            self.assertTrue("--password=xxxxxxxx" in output, msg = output)
80
82