def _check_results(self):
expected_result = "<STR_LIT>"<EOL>actual_result = "<STR_LIT>"<EOL>retries_left = RETRY_COUNT<EOL>_sleep("<STR_LIT>" % self.testname, RETRY_INTERVAL)<EOL>while retries_left > <NUM_LIT:0>:<EOL><INDENT>retries_left -= <NUM_LIT:1><EOL>try:<EOL><INDENT>with open(self.params['<STR_LIT>'], '<STR_LIT:r>') as f:<EOL><INDENT>expected_result = f.read()<EOL><DEDENT>with open(self.params['<STR_LIT>'], '<STR_LIT:r>') as g:<EOL><INDENT>actual_result = g.read()<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>message ="<STR_LIT>" % self.testname<EOL>if retries_left == <NUM_LIT:0>:<EOL><INDENT>raise status.TestFailure(message, e)<EOL><DEDENT>logging.error(message, e)<EOL><DEDENT>expected_sorted = sorted(expected_result.split('<STR_LIT:\n>'))<EOL>actual_sorted = sorted(actual_result.split('<STR_LIT:\n>'))<EOL>if expected_sorted == actual_sorted:<EOL><INDENT>break<EOL><DEDENT>if retries_left > <NUM_LIT:0>:<EOL><INDENT>expected_result = "<STR_LIT>"<EOL>actual_result = "<STR_LIT>"<EOL>expected_sorted = []<EOL>actual_sorted = []<EOL>logging.info("<STR_LIT>"+ "<STR_LIT>",<EOL>self.testname, RETRY_COUNT - retries_left, RETRY_COUNT, RETRY_INTERVAL)<EOL>time.sleep(RETRY_INTERVAL)<EOL><DEDENT><DEDENT>if actual_sorted == expected_sorted:<EOL><INDENT>success = status.TestSuccess(<EOL>"<STR_LIT>" % self.testname)<EOL>logging.info("<STR_LIT>", actual_sorted)<EOL>logging.info("<STR_LIT>", expected_sorted)<EOL>return success<EOL><DEDENT>else:<EOL><INDENT>failure = status.TestFailure(<EOL>"<STR_LIT>" % self.testname)<EOL>logging.info("<STR_LIT>", actual_sorted)<EOL>logging.info("<STR_LIT>", expected_sorted)<EOL>raise failure<EOL><DEDENT>
get actual and expected result.
        retry if results are not equal a predesignated amount of times