diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-06-21 09:18:02 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-21 15:30:56 +0100 |
commit | de3b070fc2ddd0b63a324679ec5adbe30142fc22 (patch) | |
tree | 14bdf5c18f548782e55c578cebf278fff2ffdff2 /meta/lib/oeqa/core | |
parent | b11521ce1b1d1f8b4dddf830b41f5ea809730d22 (diff) | |
download | openembedded-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>
Diffstat (limited to 'meta/lib/oeqa/core')
-rw-r--r-- | meta/lib/oeqa/core/context.py | 2 |
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=[], |