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:
@@ -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=[],
|
||||
|
||||
Reference in New Issue
Block a user