mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
[infra] Add explanation to ABI test logs
Change-Id: I96ba3fe6bfd294a6b9864973e5e2e9dea20417ba Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150981 Reviewed-by: Karl Klose <karlklose@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>
This commit is contained in:
parent
e601ca5e45
commit
fa68d27ef7
|
@ -166,11 +166,18 @@ def diffResults(results, configuration_name):
|
|||
def makeLog(diffs, results, logRecords, configuration_name):
|
||||
result = pickOne(results)
|
||||
logs = ["%s: %s" % (str(v), l['log']) for v, l in logRecords.items()]
|
||||
log = ('This test fails if there is a difference in the test results\n'
|
||||
'between ABI versions. The expected result is the result on the\n'
|
||||
'current ABI: %s\n'
|
||||
'These ABI versions reported a different result: %s\n\n'
|
||||
'These are the logs of the test runs on different ABI versions.\n'
|
||||
'There are no logs for versions where the test passed.\n\n%s' %
|
||||
(result['result'], repr(diffs), '\n\n\n'.join(logs)))
|
||||
return {
|
||||
'name': result['name'],
|
||||
'configuration': configuration_name,
|
||||
'result': result['result'],
|
||||
'log': '\n\n\n'.join([repr(diffs)] + logs),
|
||||
'log': log,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue