bisector: Properly detect MSan issues as well. (#3762)

Adopt a similar start/end marker approach to CF.
This commit is contained in:
Oliver Chang 2020-05-06 12:09:51 +10:00 committed by GitHub
parent 2d972c9162
commit b16fcfc903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -47,8 +47,12 @@ import utils
Result = collections.namedtuple('Result', ['repo_url', 'commit']) Result = collections.namedtuple('Result', ['repo_url', 'commit'])
CRASH_MARKERS = [ START_MARKERS = [
'==ERROR', '==ERROR',
'==WARNING',
]
END_MARKERS = [
'SUMMARY:', 'SUMMARY:',
] ]
@ -157,8 +161,12 @@ def _check_for_crash(project_name, fuzz_target, test_case_path):
logging.info('stdout =\n%s', out) logging.info('stdout =\n%s', out)
logging.info('stderr =\n%s', err) logging.info('stderr =\n%s', err)
# pylint: disable=unsupported-membership-test # pylint: disable=unsupported-membership-test
return all(marker in out or marker in err for marker in CRASH_MARKERS) has_start_marker = any(
marker in out or marker in err for marker in START_MARKERS)
has_end_marker = any(marker in out or marker in err for marker in END_MARKERS)
return has_start_marker and has_end_marker
# pylint: disable=too-many-locals # pylint: disable=too-many-locals