<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><br></div></div></div></div>
<br><div class="gmail_quote">On 3 April 2018 at 03:58, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 03/04/2018 02:10, Cillian O'Donnell wrote:<br>
> Sure if you want to crack at it.<br>
><br>
> If you pull the ini-update branch again, I've included the other files you'll need.<br>
><br>
> Now if you try and run rtems-test with coverage you will get<br>
><br>
> cpod@cpod ~ $ $HOME/development/rtems/test/<wbr>rtems-tools/tester/rtems-test<br>
> --rtems-tools=$HOME/<wbr>development/rtems/5 --log=coverage-analysis.log<br>
> --rtems-bsp=leon3_qemu --coverage --rtems-builddir=$HOME/<wbr>development/rtems/leon3<br>
> sparc-rtems5/c/leon3/<wbr>testsuites/samples<br>
> RTEMS Testing - Tester, 5 (80a1e6d9607e)<br>
> Traceback (most recent call last):<br>
> File "/home/cpod/development/rtems/<wbr>test/rtems-tools/tester/rtems-<wbr>test", line<br>
> 40, in <module><br>
> rt.test.run()<br>
> File "/home/cpod/development/rtems/<wbr>test/rtems-tools/tester/rt/<wbr>test.py", line<br>
> 310, in run<br>
> coverage = coverage_get_obj(opts, path_to_builddir[1])<br>
> File "/home/cpod/development/rtems/<wbr>test/rtems-tools/tester/rt/<wbr>test.py", line<br>
> 230, in coverage_get_obj<br>
> coverage_obj = coverage.coverage_run(opts.<wbr>defaults, path_to_builddir)<br>
> File "/home/cpod/development/rtems/<wbr>test/rtems-tools/tester/rt/<wbr>coverage.py",<br>
> line 329, in __init__<br>
> self.config_map = self.macros.macros['coverage']<br></span></blockquote><div><br></div><div>I managed was getting these errors yesterday after pulling the changes but for some reason it's not working as expected , now .</div><div>It's giving the error : </div><div> error: mandatory item not found in bsp section: bsp</div><div>where can this error be coming from ?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
<br>
</span>I would not access the 'macros' dictionary directly like this. It circumvents<br>
the map support. There is '__getitem__' support on the class which is better but<br>
still raises an exception on an index error. You can ask if a key is present and<br>
the 'get()' interface returns 'None' if not found.<br>
<br>
> KeyError: 'coverage'<br>
<br>
Can we please create new threads for new topics?<br>
<br>
Thanks<br>
<span class="gmail-HOEnZb"><font color="#888888">Chris<br>
</font></span></blockquote></div><div class="gmail_extra"><br></div>Thanks</div></div>