summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2015-09-29 06:27:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-01 07:43:35 +0100
commitec504e0ff60d72352ef98dfead826ee5a991c46e (patch)
tree6351fb4502bf9fb9131ab33428df8f772170537a
parent8fe5b489df626374838c214d1b2a25d3ad04c04c (diff)
downloadpoky-ec504e0ff60d72352ef98dfead826ee5a991c46e.tar.gz
oeqa/utils/decorators: Append the testname without the full path
When getting the failures/errors/skipped lists, include the unit test without the full path. This issue was found on this scenario | test_1_logrotate_setup (oeqa.runtime.logrotate.LogrotateTest) ... FAIL | test_2_logrotate (oeqa.runtime.logrotate.LogrotateTest) ... ok Where test_1_logrotate failed and test_2_logrotate should not have run because @skipUnlessPassed("test_1_logrotate_setup") def test_2_logrotate(self): (From OE-Core rev: 8715beff7b910209627da3726b18b7abf801b557) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/decorators.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py
index 7a86970873..2169a20884 100644
--- a/meta/lib/oeqa/utils/decorators.py
+++ b/meta/lib/oeqa/utils/decorators.py
@@ -33,6 +33,10 @@ class getResults(object):
33 ret.append(s.replace("setUpModule (", "").replace(")","")) 33 ret.append(s.replace("setUpModule (", "").replace(")",""))
34 else: 34 else:
35 ret.append(s) 35 ret.append(s)
36 # Append also the test without the full path
37 testname = s.split('.')[-1]
38 if testname:
39 ret.append(testname)
36 return ret 40 return ret
37 self.faillist = handleList(upperf.f_locals['result'].failures) 41 self.faillist = handleList(upperf.f_locals['result'].failures)
38 self.errorlist = handleList(upperf.f_locals['result'].errors) 42 self.errorlist = handleList(upperf.f_locals['result'].errors)