Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
raise MUTLibError("{0}: failed".format(comment))
test_num += 1
comment = ("Test case {0} - use pedantic to fail if innodb "
"different".format(test_num))
res = self.run_test_case(self.server5, self.server2, self.s5_serverid,
comment, " --pedantic", 1)
if not res:
raise MUTLibError("{0}: failed".format(comment))
try:
self.server5.exec_query("STOP SLAVE")
except UtilError:
raise MUTLibError("{0}: Failed to stop slave.".format(comment))
replicate.test.mask_results(self)
return True
raise MUTLibError("{0}: failed".format(comment))
test_num += 1
comment = ("Test case {0} - use pedantic to fail if master has "
"different default engines".format(test_num))
res = self.run_test_case(self.server1, self.server4, self.s1_serverid,
comment, " --pedantic", 1)
if not res:
raise MUTLibError("{0}: failed".format(comment))
try:
self.server1.exec_query("STOP SLAVE")
except UtilError:
raise MUTLibError("{0}: Failed to stop slave.".format(comment))
replicate.test.mask_results(self)
# Mask out inconsistent results when run on slower machines
self.remove_result("# status: Queueing master event to the relay log")
self.remove_result("# error: 0:")
self.remove_result("# Waiting for slave to synchronize with master")
return True