]> code.ossystems Code Review - openembedded-core.git/commitdiff
context.py: avoid skipping tests by meaningless command argument
authorChen Qi <Qi.Chen@windriver.com>
Fri, 21 Jun 2019 01:18:02 +0000 (09:18 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jun 2019 14:30:56 +0000 (15:30 +0100)
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@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/context.py

index 58244895af6c1ab1683c70e0a84050b09ab2d7eb..7882697e28ce8b12accb1f5c2bf1af947102a39f 100644 (file)
@@ -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=[],