diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-05-26 15:37:45 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-30 10:15:22 +0100 |
commit | 0f7531803aa6ffef2b7c5be9acee3efe7d2974ef (patch) | |
tree | fcc9aea505fe25ff40a9c986e9392c7f431c4da1 /meta/lib/oeqa/core/context.py | |
parent | 7e803f1a855d3091a772b13efd3cc8e9c0c766e9 (diff) | |
download | openembedded-core-0f7531803aa6ffef2b7c5be9acee3efe7d2974ef.tar.gz openembedded-core-0f7531803aa6ffef2b7c5be9acee3efe7d2974ef.tar.bz2 openembedded-core-0f7531803aa6ffef2b7c5be9acee3efe7d2974ef.zip |
oeqa/core: Add support for run tests by module, class and name
This will enable only run certain module tests and filter by
class and test name.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/context.py')
-rw-r--r-- | meta/lib/oeqa/core/context.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index bc958d0dfe..28ae017090 100644 --- a/meta/lib/oeqa/core/context.py +++ b/meta/lib/oeqa/core/context.py @@ -85,9 +85,9 @@ class OETestContextExecutor(object): help="results output log, default: %s" % self.default_output_log) group = self.parser.add_mutually_exclusive_group() - group.add_argument('--run-tests', action='store', + group.add_argument('--run-tests', action='store', nargs='+', default=self.default_tests, - help="tests to run in <module>[.<class>[.<name>]] format. Just works for modules now") + help="tests to run in <module>[.<class>[.<name>]]") group.add_argument('--list-tests', action='store', choices=('module', 'class', 'name'), help="lists available tests") @@ -136,7 +136,7 @@ class OETestContextExecutor(object): self.tc_kwargs['init']['td'] = {} if args.run_tests: - self.tc_kwargs['load']['modules'] = args.run_tests.split() + self.tc_kwargs['load']['modules'] = args.run_tests else: self.tc_kwargs['load']['modules'] = None |