I got the rtems-test running I found that get_item_names(section, err) in configuration.py was returning an empty list to the item_names in load(bsp,opts) for config.py this was giving out the error mandatory item not found .
I have attached the patch file . current status : rtems-test is running without coverage running coverage gives the following error : RTEMS Testing - Tester, 5 (092c569e81ae) Traceback (most recent call last): File "/home/lunatic/development/rtems/rtems-tools/tester/rtems-test", line 40, in <module> rt.test.run() File "/home/lunatic/development/rtems/rtems-tools/tester/rt/test.py", line 310, in run coverage = coverage_get_obj(opts, path_to_builddir[1]) File "/home/lunatic/development/rtems/rtems-tools/tester/rt/test.py", line 230, in coverage_get_obj coverage_obj = coverage.coverage_run(opts.defaults, path_to_builddir) File "/home/lunatic/development/rtems/rtems-tools/tester/rt/coverage.py", line 335, in __init__ self.report_format = self.config_map['report_format'][2] TypeError: 'NoneType' object has no attribute '__getitem__' Thanks -- vijay On 4 April 2018 at 11:16, Chris Johns <chr...@rtems.org> wrote: > On 04/04/2018 06:36, Vijay Kumar Banerjee wrote: > > after pulling the ini-update branch from > > https://github.com/cillianodonnell/rtems-tools/tree/ini-update > > > > Any local changes? > > > I tried running the rtems-test with the following command > > > > $HOME/development/rtems/rtems-tools/tester/rtems-test > > --rtems-tools=$HOME/development/rtems/5 --log=coverage_analysis.log > > --rtems-bsp=leon3_qemu --rtems-builddir=$HOME/ > development/rtems/kernel/leon3 > > sparc-rtems5/c/leon3/testsuites/samples > > > > was getting the KeyError for 'coverage' > > > > Please paste the command and output as it appears in the terminal? > > > current status : > > the same command gives the error : > > "mandatory item not found in bsp section : bsp," > > to make sure I didn't break something , I also tried running from a > freshly > > downloaded directory as well, it gives the same error. > > Did you try running the following command from the top of the source tree: > > $ grep -r "mandatory item not found" * > > ? > > Chris >
From 092c569e81ae9362828e6a9a464fbf6a72d49981 Mon Sep 17 00:00:00 2001 From: thelunatic <vijaykumar9...@gmail.com> Date: Wed, 4 Apr 2018 14:45:38 +0530 Subject: [PATCH] configuration RawConfigParser --- rtemstoolkit/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemstoolkit/configuration.py b/rtemstoolkit/configuration.py index e3f8b79..2047ba1 100644 --- a/rtemstoolkit/configuration.py +++ b/rtemstoolkit/configuration.py @@ -48,7 +48,7 @@ from rtemstoolkit import path class configuration: def __init__(self): - self.config = configparser.ConfigParser() + self.config = configparser.RawConfigParser() self.ini = None self.macro_filter = re.compile('\$\{.+\}') -- 2.14.3
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel