Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def run_and_record_test(self, comment, options):
"""Execute the test and record the results.
comment[in] Comment.
options[in] Options for running rpl test.
"""
res = replicate.test.run_rpl_test(self, self.server1, self.server2,
self.s1_serverid, comment, options,
False, 0, False)
if not res:
raise MUTLibError("{0}: failed".format(comment))
self.wait_for_slave(10)
# Record the results
self.get_table_rows(comment)
# Stop slave
self.stop_slave(comment, self.server1)
return True