<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Fri, 6 Apr 2018, 02:24 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I tried to solve the empty get in the way shown in the patch , but it doesn't seems to work, I'm getting the following error now <div><br></div><div><div>RTEMS Testing - Tester, 5 (1ed6e2e64090)</div><div>Traceback (most recent call last):</div><div> File "/home/lunatic/development/rtems/rtems-tools/tester/rtems-test", line 40, in <module></div><div> rt.test.run()</div><div> File "/home/lunatic/development/rtems/rtems-tools/tester/rt/test.py", line 303, in run</div><div> bsp = config.load(bsp[1], opts)</div><div> File "/home/lunatic/development/rtems/rtems-tools/tester/rt/config.py", line 461, in load</div><div> return opts.defaults['bsp']</div><div> File "/home/lunatic/development/rtems/rtems-tools/rtemstoolkit/macros.py", line 190, in __getitem__</div><div> raise IndexError('key: %s' % (key))</div><div>IndexError: key: bsp</div></div><div><br></div><div class="gmail_extra"></div></div></blockquote></div></div><div dir="auto">I still Couldn't figure out why it's happening, when I use RawConfigParse , it seems to run nicely though . </div><div dir="auto"><br></div><div dir="auto">Any Ideas on solving it without using RawConfigParser ?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br clear="all"><div><div class="m_-1932434445594875856gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 5 April 2018 at 11:51, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" target="_blank" rel="noreferrer">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 4 Apr 2018, 11:18 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" target="_blank" rel="noreferrer">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I got the rtems-test running <div><br></div><div>I found that get_item_names(section, err) in configuration.py was returning an empty list to the </div><div>item_names in load(bsp,opts) for config.py this was giving out the error mandatory item not found .</div><div><br></div><div>I have attached the patch file .</div><div><br></div><div>current status : </div><div>rtems-test is running without coverage</div><div><br></div><div>running coverage gives the following error :</div><div><br></div><div><div>RTEMS Testing - Tester, 5 (092c569e81ae)</div><div>Traceback (most recent call last):</div><div> File "/home/lunatic/development/rtems/rtems-tools/tester/rtems-test", line 40, in <module></div><div> rt.test.run()</div><div> File "/home/lunatic/development/rtems/rtems-tools/tester/rt/test.py", line 310, in run</div><div> coverage = coverage_get_obj(opts, path_to_builddir[1])</div><div> File "/home/lunatic/development/rtems/rtems-tools/tester/rt/test.py", line 230, in coverage_get_obj</div><div> coverage_obj = coverage.coverage_run(opts.defaults, path_to_builddir)</div><div> File "/home/lunatic/development/rtems/rtems-tools/tester/rt/coverage.py", line 335, in __init__</div><div> self.report_format = self.config_map['report_format'][2]</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"></div></span><div dir="auto">This is back to the difference in cfg formats. It's looking for the last line here</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/cillianodonnell/rtems-tools/blob/coverage/tester/rtems/testing/bsps/leon3-qemu.mc" target="_blank" rel="noreferrer">https://github.com/cillianodonnell/rtems-tools/blob/coverage/tester/rtems/testing/bsps/leon3-qemu.mc</a><br></div><div dir="auto"><br></div><div dir="auto">Which is now</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/cillianodonnell/rtems-tools/blob/ini-update/tester/rtems/testing/bsps/leon3_qemu.ini" target="_blank" rel="noreferrer">https://github.com/cillianodonnell/rtems-tools/blob/ini-update/tester/rtems/testing/bsps/leon3_qemu.ini</a><br></div><div dir="auto"><br></div><div dir="auto">It's trying to grab the 'html' text so it can trigger the right section of code in coverage.py</div><div dir="auto"><br></div><div dir="auto">It's something just to tell which format we want the report to output</div></div></blockquote><div><br></div><div>Understood , I'll come to that after I manage to get the test running first . </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>TypeError: 'NoneType' object has no attribute '__getitem__'</div></div><div><br></div><div><br></div><div><div>Thanks </div></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-1932434445594875856m_1469656344329401499m_-6208427953382774662gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 4 April 2018 at 11:16, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" rel="noreferrer noreferrer" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 04/04/2018 06:36, Vijay Kumar Banerjee wrote:<br>
> after pulling the ini-update branch from <br>
> <a href="https://github.com/cillianodonnell/rtems-tools/tree/ini-update" rel="noreferrer noreferrer noreferrer" target="_blank">https://github.com/cillianodonnell/rtems-tools/tree/ini-update</a><br>
><br>
<br>
</span>Any local changes?<br>
<span><br>
> I tried running the rtems-test with the following command<br>
><br>
> $HOME/development/rtems/rtems-tools/tester/rtems-test<br>
> --rtems-tools=$HOME/development/rtems/5 --log=coverage_analysis.log<br>
> --rtems-bsp=leon3_qemu --rtems-builddir=$HOME/development/rtems/kernel/leon3<br>
> sparc-rtems5/c/leon3/testsuites/samples<br>
><br>
> was getting the KeyError for 'coverage'<br>
><br>
<br>
</span>Please paste the command and output as it appears in the terminal?<br>
<span><br>
> current status : <br>
> the same command gives the error : <br>
> "mandatory item not found in bsp section : bsp," <br>
> to make sure I didn't break something , I also tried running from a freshly<br>
> downloaded directory as well, it gives the same error.<br>
<br>
</span>Did you try running the following command from the top of the source tree:<br>
<br>
$ grep -r "mandatory item not found" *<br>
<br>
?<br>
<span class="m_-1932434445594875856m_1469656344329401499m_-6208427953382774662HOEnZb"><font color="#888888"><br>
Chris<br>
</font></span></blockquote></div><br></div>
</blockquote></div></div></span></div>
</blockquote></div><br></div></div>
</blockquote></div></div></div>