From 425fb26736ce102d0bf892b9c90a84d6e14f7f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 13 Nov 2018 00:00:02 +0000 Subject: [PATCH] run: fix error log parsing --- run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run b/run index 8efa0bd..feb8375 100755 --- a/run +++ b/run @@ -398,13 +398,13 @@ def main(args, extra_args=None): with open(common.termout_file, 'br') as logfile: for line in logfile: if panic_re.search(line): - error_string_found = true + error_string_found = True with open(common.guest_terminal_file, 'br') as logfile: lines = logfile.readlines() if lines: last_line = lines[-1] if last_line.rstrip() == common.magic_fail_string: - error_string_found = true + error_string_found = True if error_string_found: common.log_error('simulation error detected by parsing logs') return 1