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>
This commit is contained in:
Paul Barker authored and Richard Purdie committed 2020-06-04 13:27:32 +01:00
1 parent 05882158de
commit 18a69b1cd2
2 files changed
+3

No files matched your search

+2
View File
@@ -156,6 +156,8 @@ class OETestContextExecutor(object):
fh = logging.FileHandler(args.output_log)
fh.setFormatter(formatter)
logger.addHandler(fh)
if getattr(args, 'verbose', False):
logger.setLevel('DEBUG')
return logger
+1
View File
@@ -138,6 +138,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
help='Exclude all (unhidden) tests that match any of the specified tag(s). (exclude applies before select)')
parser.add_argument('-B', '--newbuilddir', help='New build directory to use for tests.')
parser.add_argument('-v', '--verbose', action='store_true')
parser.set_defaults(func=self.run)
def _get_available_machines(self):