From de3b070fc2ddd0b63a324679ec5adbe30142fc22 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Fri, 21 Jun 2019 09:18:02 +0800 Subject: 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 Signed-off-by: Richard Purdie --- 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 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=[], -- cgit 1.2.3-korg