From: Paul Barker Date: Wed, 3 Jun 2020 20:07:37 +0000 (+0100) Subject: oe-selftest: Support verbose log output X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~10869 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a607da9a6aa05f86b0e77cccd066b9f286cfada;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oe-selftest: Support verbose log output Signed-off-by: Paul Barker Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index 4705d608ac0..7d3fa3b84a5 100644 --- a/meta/lib/oeqa/core/context.py +++ b/meta/lib/oeqa/core/context.py @@ -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 diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index 17f2a0cf6bb..7589ca3c1fd 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py @@ -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):