summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2019-06-21 09:18:02 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-21 15:30:56 +0100
commitde3b070fc2ddd0b63a324679ec5adbe30142fc22 (patch)
tree14bdf5c18f548782e55c578cebf278fff2ffdff2
parentb11521ce1b1d1f8b4dddf830b41f5ea809730d22 (diff)
downloadopenembedded-core-contrib-de3b070fc2ddd0b63a324679ec5adbe30142fc22.tar.gz
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@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/core/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index 58244895af..7882697e28 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=[],