]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/decorators: Append the testname without the full path
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Tue, 29 Sep 2015 06:27:07 +0000 (06:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Oct 2015 06:40:23 +0000 (07:40 +0100)
commit8715beff7b910209627da3726b18b7abf801b557
tree0d9ff6df757ec209d241e8f63c45c89386f58733
parent692f1333e257556e7462b2436dd60e865869349c
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):

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/decorators.py