File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -399,12 +399,13 @@ def main(args, extra_args=None):
399
399
for line in logfile :
400
400
if panic_re .search (line ):
401
401
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
408
409
if error_string_found :
409
410
common .log_error ('simulation error detected by parsing logs' )
410
411
return 1
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ the script is a .py file next to the source code.
228
228
'''
229
229
)
230
230
parser .add_argument (
231
- '--userland' , default = defaults ['userland' ],
231
+ '-u' , '- -userland' , default = defaults ['userland' ],
232
232
)
233
233
parser .add_argument (
234
234
'break_at' , nargs = '?' ,
You can’t perform that action at this time.
0 commit comments