1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-07 16:59:22 +00:00

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.

(From OE-Core rev: de3b070fc2ddd0b63a324679ec5adbe30142fc22)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi
2019-06-21 09:18:02 +08:00
committed by Richard Purdie
parent d52b1dfc1b
commit 44d5ec6d74
+1 -1
View 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=[],