diff options
author | Paul Barker <pbarker@konsulko.com> | 2020-06-03 21:07:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-04 13:27:32 +0100 |
commit | 18a69b1cd26112a78db9b062348a98ceeabe377b (patch) | |
tree | 7ad5584f042e9b1fbf72a74c2ed3049678821862 /meta | |
parent | 05882158defa0199c2916098858139fcfe502ed4 (diff) | |
download | poky-18a69b1cd26112a78db9b062348a98ceeabe377b.tar.gz |
oe-selftest: Support verbose log output
(From OE-Core rev: 6a607da9a6aa05f86b0e77cccd066b9f286cfada)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/core/context.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index 4705d608ac..7d3fa3b84a 100644 --- a/meta/lib/oeqa/core/context.py +++ b/meta/lib/oeqa/core/context.py | |||
@@ -156,6 +156,8 @@ class OETestContextExecutor(object): | |||
156 | fh = logging.FileHandler(args.output_log) | 156 | fh = logging.FileHandler(args.output_log) |
157 | fh.setFormatter(formatter) | 157 | fh.setFormatter(formatter) |
158 | logger.addHandler(fh) | 158 | logger.addHandler(fh) |
159 | if getattr(args, 'verbose', False): | ||
160 | logger.setLevel('DEBUG') | ||
159 | 161 | ||
160 | return logger | 162 | return logger |
161 | 163 | ||
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index 17f2a0cf6b..7589ca3c1f 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
@@ -138,6 +138,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor): | |||
138 | help='Exclude all (unhidden) tests that match any of the specified tag(s). (exclude applies before select)') | 138 | help='Exclude all (unhidden) tests that match any of the specified tag(s). (exclude applies before select)') |
139 | 139 | ||
140 | parser.add_argument('-B', '--newbuilddir', help='New build directory to use for tests.') | 140 | parser.add_argument('-B', '--newbuilddir', help='New build directory to use for tests.') |
141 | parser.add_argument('-v', '--verbose', action='store_true') | ||
141 | parser.set_defaults(func=self.run) | 142 | parser.set_defaults(func=self.run) |
142 | 143 | ||
143 | def _get_available_machines(self): | 144 | def _get_available_machines(self): |