<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 30 May 2018 at 22:51, Gedare Bloom <span dir="ltr"><<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">> +def coverage_run(opts, coverage, executables):<br></div></div><div><div class="h5">
> + coverage.executables = executables<br>
> + coverage.run()<br>
> +<br>
> def run(command_path = None):<br>
> import sys<br>
> tests = []<br>
> @@ -221,15 +228,16 @@ def run(command_path = None):<br>
> opts = None<br>
> default_exefilter = '*.exe'<br>
> try:<br>
> - optargs = { '--rtems-tools': 'The path to the RTEMS tools',<br>
> - '--rtems-bsp': 'The RTEMS BSP to run the test on',<br>
> - '--user-config': 'Path to your local user configuration INI file',<br>
> - '--report-mode': 'Reporting modes, failures (default),all,none',<br>
> - '--list-bsps': 'List the supported BSPs',<br>
> - '--debug-trace': 'Debug trace based on specific flags',<br>
> - '--filter': 'Glob that executables must match to run (default: ' +<br>
> + optargs = { '--rtems-tools': 'The path to the RTEMS tools',<br>
> + '--rtems-bsp': 'The RTEMS BSP to run the test on',<br>
> + '--user-config': 'Path to your local user configuration INI file',<br>
> + '--report-mode': 'Reporting modes, failures (default),all,none',<br>
> + '--list-bsps': 'List the supported BSPs',<br>
> + '--debug-trace': 'Debug trace based on specific flags',<br>
> + '--filter': 'Glob that executables must match to run (default: ' +<br>
> default_exefilter + ')',<br>
> - '--stacktrace': 'Dump a stack trace on a user termination (^C)' }<br>
> + '--stacktrace': 'Dump a stack trace on a user termination (^C)',<br>
> + '--coverage': 'Perform coverage analysis of test exectuables.'}<br>
</div></div>Why are there changes outside of the last two lines (stacktrace and<br>
coverage)? Only those two need to be modified to add the new option.<br>
<br></blockquote><div>Spaces were added to properly format the code. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Typo: s/exectuables/executables<br>
<span class=""><br></span><br>
</blockquote></div><br></div></div>