run: dont break on userland due to missing termout file

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-15 00:00:02 +00:00
parent f8631e58d0
commit 95c1800b0e
2 changed files with 8 additions and 7 deletions

1
run
View File

@@ -399,6 +399,7 @@ def main(args, extra_args=None):
for line in logfile: for line in logfile:
if panic_re.search(line): if panic_re.search(line):
error_string_found = True error_string_found = True
if os.path.exists(common.guest_terminal_file):
with open(common.guest_terminal_file, 'br') as logfile: with open(common.guest_terminal_file, 'br') as logfile:
lines = logfile.readlines() lines = logfile.readlines()
if lines: if lines:

View File

@@ -228,7 +228,7 @@ the script is a .py file next to the source code.
''' '''
) )
parser.add_argument( parser.add_argument(
'--userland', default=defaults['userland'], '-u', '--userland', default=defaults['userland'],
) )
parser.add_argument( parser.add_argument(
'break_at', nargs='?', 'break_at', nargs='?',