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:32:36 +0100 |
commit | 44d5ec6d7465595bc1aecb346ed53405ad3a57d7 (patch) | |
tree | c5e4bebf8f567720e227fb3f29086cc9fe80929d /meta/lib | |
parent | d52b1dfc1baac551350617bd683e8978bfae11c0 (diff) | |
download | poky-44d5ec6d7465595bc1aecb346ed53405ad3a57d7.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.
(From OE-Core rev: de3b070fc2ddd0b63a324679ec5adbe30142fc22)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-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): | |||
52 | return func | 52 | return func |
53 | for test in self.suites: | 53 | for test in self.suites: |
54 | for skip in skips: | 54 | for skip in skips: |
55 | if test.id().startswith(skip): | 55 | if (test.id()+'.').startswith(skip+'.'): |
56 | setattr(test, 'setUp', skipfuncgen('Skip by the command line argument "%s"' % skip)) | 56 | setattr(test, 'setUp', skipfuncgen('Skip by the command line argument "%s"' % skip)) |
57 | 57 | ||
58 | def loadTests(self, module_paths, modules=[], tests=[], | 58 | def loadTests(self, module_paths, modules=[], tests=[], |