diff options
author | Chris Johns <chrisj@rtems.org> | 2018-06-18 10:13:47 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-06-18 12:26:16 +1000 |
commit | e341a65347ceb887cc5d5e114f252c366a4b8488 (patch) | |
tree | f4a22860fc32e6904696cc4c912afd3f5688f603 /tester/rt/test.py | |
parent | 5195eb735abead4d047123c60887597fd438d6d5 (diff) |
tester: Make the path to covoar absolute to ignore the env PATH.
Using the environment's path to find covoar allow invalid versions
to be used which may vary in subtle ways. Find and use the covoar
that is build with the version of 'rtems-test'.
This patch means you do not need to install the tools before
running improving the development experience.
Closes #3458
Diffstat (limited to 'tester/rt/test.py')
-rw-r--r-- | tester/rt/test.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tester/rt/test.py b/tester/rt/test.py index 0e744cd..9214ad6 100644 --- a/tester/rt/test.py +++ b/tester/rt/test.py @@ -228,7 +228,7 @@ def run(command_path = None): '--user-config': 'Path to your local user configuration INI file', '--report-mode': 'Reporting modes, failures (default),all,none', '--list-bsps': 'List the supported BSPs', - '--debug-trace': 'Debug trace based on specific flags', + '--debug-trace': 'Debug trace based on specific flags (console,gdb,output,cov)', '--filter': 'Glob that executables must match to run (default: ' + default_exefilter + ')', '--stacktrace': 'Dump a stack trace on a user termination (^C)', @@ -266,7 +266,7 @@ def run(command_path = None): if len(debug_trace) != 1: debug_trace = debug_trace[1] else: - raise error.general('no debug flags, can be: console,gdb,output') + raise error.general('no debug flags, can be: console,gdb,output,cov') else: debug_trace = '' opts.defaults['exe_trace'] = debug_trace @@ -285,13 +285,16 @@ def run(command_path = None): bsp_config = opts.defaults.expand(opts.defaults['tester']) coverage_enabled = opts.find_arg('--coverage') if coverage_enabled: + cov_trace = 'cov' in debug_trace.split(',') if len(coverage_enabled) == 2: coverage_runner = coverage.coverage_run(opts.defaults, - coverage_enabled[1], - executables) + executables, + symbol_set = coverage_enabled[1], + trace = cov_trace) else: - coverage_runner = coverage.coverage_run(opts.defaults, 0, - executables) + coverage_runner = coverage.coverage_run(opts.defaults, + executables, + trace = cov_trace) report_mode = opts.find_arg('--report-mode') if report_mode: if report_mode[1] != 'failures' and \ |