summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/context.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-05-26 15:37:45 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-02 13:36:14 +0100
commitc746ee11eca0f09d71e23986fb77392777e255cd (patch)
tree3a55b1f77d403e0792456e91f5aae1d6a9876eca /meta/lib/oeqa/core/context.py
parent49223c47fc20ed4215cf82831a07dae6a1793dd0 (diff)
downloadpoky-c746ee11eca0f09d71e23986fb77392777e255cd.tar.gz
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>
Diffstat (limited to 'meta/lib/oeqa/core/context.py')
-rw-r--r--meta/lib/oeqa/core/context.py6
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):
85 help="results output log, default: %s" % self.default_output_log) 85 help="results output log, default: %s" % self.default_output_log)
86 86
87 group = self.parser.add_mutually_exclusive_group() 87 group = self.parser.add_mutually_exclusive_group()
88 group.add_argument('--run-tests', action='store', 88 group.add_argument('--run-tests', action='store', nargs='+',
89 default=self.default_tests, 89 default=self.default_tests,
90 help="tests to run in <module>[.<class>[.<name>]] format. Just works for modules now") 90 help="tests to run in <module>[.<class>[.<name>]]")
91 group.add_argument('--list-tests', action='store', 91 group.add_argument('--list-tests', action='store',
92 choices=('module', 'class', 'name'), 92 choices=('module', 'class', 'name'),
93 help="lists available tests") 93 help="lists available tests")
@@ -136,7 +136,7 @@ class OETestContextExecutor(object):
136 self.tc_kwargs['init']['td'] = {} 136 self.tc_kwargs['init']['td'] = {}
137 137
138 if args.run_tests: 138 if args.run_tests:
139 self.tc_kwargs['load']['modules'] = args.run_tests.split() 139 self.tc_kwargs['load']['modules'] = args.run_tests
140 else: 140 else:
141 self.tc_kwargs['load']['modules'] = None 141 self.tc_kwargs['load']['modules'] = None
142 142