def fetch_results(self):
try:<EOL><INDENT>if not os.path.exists(self.file_path):<EOL><INDENT>raise status.TestFailure("<STR_LIT>" % self.file_path)<EOL><DEDENT>else:<EOL><INDENT>with open(self.file_path, "<STR_LIT:r>") as expected_result_file:<EOL><INDENT>return expected_result_file.read().rstrip()<EOL><DEDENT><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>raise status.TestFailure("<STR_LIT>" % self.file_path, e)<EOL><DEDENT>
Read expected result from the expected result file