[oe-commits] [openembedded-core] 02/08: context.py: avoid skipping tests by meaningless command argument

git at git.openembedded.org git at git.openembedded.org
Fri Jun 21 09:24:07 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit bfa1958b2d343aea65b6790bc03857595e087149
Author: Chen Qi <Qi.Chen at windriver.com>
AuthorDate: Fri Jun 21 09:18:02 2019 +0800

    context.py: avoid skipping tests by meaningless command argument
    
    Currently `oe-selftest -R a' will skip 'archiver' tests. This is
    not expected. Fix it so that the '-R' should be followed by actual
    module/class/test names.
    
    Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/core/context.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index 5824489..7882697 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -52,7 +52,7 @@ class OETestContext(object):
             return func
         for test in self.suites:
             for skip in skips:
-                if test.id().startswith(skip):
+                if (test.id()+'.').startswith(skip+'.'):
                     setattr(test, 'setUp', skipfuncgen('Skip by the command line argument "%s"' % skip))
 
     def loadTests(self, module_paths, modules=[], tests=[],

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list