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
2020-06-03 21:07:37 +01:00
committed by Richard Purdie
parent 05882158de
commit 18a69b1cd2
2 changed files with 3 additions and 0 deletions

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

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):