1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

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.

(From OE-Core rev: 0f7531803aa6ffef2b7c5be9acee3efe7d2974ef)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Aníbal Limón
2017-05-26 15:37:45 -05:00
committed by Richard Purdie
parent 49223c47fc
commit c746ee11ec
2 changed files with 68 additions and 4 deletions
+3 -3
View File
@@ -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