mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 20:42:44 +00:00
analyze_outcomes: fix newlines
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
f075e47bc1
commit
40314fcc75
@ -35,7 +35,7 @@ class Results:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def print_line(fmt, *args, **kwargs):
|
def print_line(fmt, *args, **kwargs):
|
||||||
sys.stderr.write(fmt, *args, **kwargs)
|
sys.stderr.write(fmt + '\n', *args, **kwargs)
|
||||||
|
|
||||||
class TestCaseOutcomes:
|
class TestCaseOutcomes:
|
||||||
"""The outcomes of one test case across many configurations."""
|
"""The outcomes of one test case across many configurations."""
|
||||||
@ -163,14 +163,14 @@ by a semicolon.
|
|||||||
|
|
||||||
def do_analyze_coverage(results: Results, outcome_file, args) -> Results:
|
def do_analyze_coverage(results: Results, outcome_file, args) -> Results:
|
||||||
"""Perform coverage analysis."""
|
"""Perform coverage analysis."""
|
||||||
results.info("\n*** Analyze coverage ***\n")
|
results.info("*** Analyze coverage ***")
|
||||||
outcomes = read_outcome_file(outcome_file)
|
outcomes = read_outcome_file(outcome_file)
|
||||||
results = analyze_outcomes(results, outcomes, args)
|
results = analyze_outcomes(results, outcomes, args)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
def do_analyze_driver_vs_reference(results: Results, outcome_file, args) -> Results:
|
def do_analyze_driver_vs_reference(results: Results, outcome_file, args) -> Results:
|
||||||
"""Perform driver vs reference analyze."""
|
"""Perform driver vs reference analyze."""
|
||||||
results.info("\n*** Analyze driver {} vs reference {} ***\n".format(
|
results.info("*** Analyze driver {} vs reference {} ***".format(
|
||||||
args['component_driver'], args['component_ref']))
|
args['component_driver'], args['component_ref']))
|
||||||
|
|
||||||
results = execute_reference_driver_tests(results, args['component_ref'], \
|
results = execute_reference_driver_tests(results, args['component_ref'], \
|
||||||
@ -690,9 +690,9 @@ def main():
|
|||||||
test_args = KNOWN_TASKS[task]['args']
|
test_args = KNOWN_TASKS[task]['args']
|
||||||
main_results = test_function(main_results, options.outcomes, test_args)
|
main_results = test_function(main_results, options.outcomes, test_args)
|
||||||
|
|
||||||
main_results.info("Overall results:\n" + \
|
main_results.info("Overall results: " + \
|
||||||
"{} warnings\n".format(main_results.warning_count) + \
|
"{} warnings | ".format(main_results.warning_count) + \
|
||||||
"{} errors\n".format(main_results.error_count))
|
"{} errors".format(main_results.error_count))
|
||||||
|
|
||||||
sys.exit(0 if (main_results.error_count == 0) else 2)
|
sys.exit(0 if (main_results.error_count == 0) else 2)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user