Improve coverage analysis toolset
Cillian O'Donnell
cpodonnell8 at gmail.com
Tue Apr 3 20:07:55 UTC 2018
What's the full output and what did you change in the time in between
having the same output that I posted and the new one?
Start a new thread for this issue like Chris mentioned.
On Tue, 3 Apr 2018, 20:35 Vijay Kumar Banerjee, <vijaykumar9597 at gmail.com>
wrote:
>
>
>
>
> On 3 April 2018 at 03:58, Chris Johns <chrisj at rtems.org> wrote:
>
>> On 03/04/2018 02:10, Cillian O'Donnell wrote:
>> > Sure if you want to crack at it.
>> >
>> > If you pull the ini-update branch again, I've included the other files
>> you'll need.
>> >
>> > Now if you try and run rtems-test with coverage you will get
>> >
>> > cpod at cpod ~ $
>> $HOME/development/rtems/test/rtems-tools/tester/rtems-test
>> > --rtems-tools=$HOME/development/rtems/5 --log=coverage-analysis.log
>> > --rtems-bsp=leon3_qemu --coverage
>> --rtems-builddir=$HOME/development/rtems/leon3
>> > sparc-rtems5/c/leon3/testsuites/samples
>> > RTEMS Testing - Tester, 5 (80a1e6d9607e)
>> > Traceback (most recent call last):
>> > File
>> "/home/cpod/development/rtems/test/rtems-tools/tester/rtems-test", line
>> > 40, in <module>
>> > rt.test.run()
>> > File
>> "/home/cpod/development/rtems/test/rtems-tools/tester/rt/test.py", line
>> > 310, in run
>> > coverage = coverage_get_obj(opts, path_to_builddir[1])
>> > File
>> "/home/cpod/development/rtems/test/rtems-tools/tester/rt/test.py", line
>> > 230, in coverage_get_obj
>> > coverage_obj = coverage.coverage_run(opts.defaults,
>> path_to_builddir)
>> > File
>> "/home/cpod/development/rtems/test/rtems-tools/tester/rt/coverage.py",
>> > line 329, in __init__
>> > self.config_map = self.macros.macros['coverage']
>>
>
> I managed was getting these errors yesterday after pulling the changes but
> for some reason it's not working as expected , now .
> It's giving the error :
> error: mandatory item not found in bsp section: bsp
> where can this error be coming from ?
>
>>
>> I would not access the 'macros' dictionary directly like this. It
>> circumvents
>> the map support. There is '__getitem__' support on the class which is
>> better but
>> still raises an exception on an index error. You can ask if a key is
>> present and
>> the 'get()' interface returns 'None' if not found.
>>
>> > KeyError: 'coverage'
>>
>> Can we please create new threads for new topics?
>>
>> Thanks
>> Chris
>>
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20180403/da065dfa/attachment-0002.html>
More information about the devel
mailing list