From 0f7531803aa6ffef2b7c5be9acee3efe7d2974ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Fri, 26 May 2017 15:37:45 -0500 Subject: oeqa/core: Add support for run tests by module, class and name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will enable only run certain module tests and filter by class and test name. Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- meta/lib/oeqa/core/context.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/lib/oeqa/core/context.py') 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 [.[.]] format. Just works for modules now") + help="tests to run in [.[.]]") 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 -- cgit v1.2.3