Skip to content

Commit 95c1800

Browse files
committed
run: dont break on userland due to missing termout file
1 parent f8631e5 commit 95c1800

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

run

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,13 @@ def main(args, extra_args=None):
399399
for line in logfile:
400400
if panic_re.search(line):
401401
error_string_found = True
402-
with open(common.guest_terminal_file, 'br') as logfile:
403-
lines = logfile.readlines()
404-
if lines:
405-
last_line = lines[-1]
406-
if last_line.rstrip() == common.magic_fail_string:
407-
error_string_found = True
402+
if os.path.exists(common.guest_terminal_file):
403+
with open(common.guest_terminal_file, 'br') as logfile:
404+
lines = logfile.readlines()
405+
if lines:
406+
last_line = lines[-1]
407+
if last_line.rstrip() == common.magic_fail_string:
408+
error_string_found = True
408409
if error_string_found:
409410
common.log_error('simulation error detected by parsing logs')
410411
return 1

run-gdb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ the script is a .py file next to the source code.
228228
'''
229229
)
230230
parser.add_argument(
231-
'--userland', default=defaults['userland'],
231+
'-u', '--userland', default=defaults['userland'],
232232
)
233233
parser.add_argument(
234234
'break_at', nargs='?',

0 commit comments

Comments
 (0)