]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-selftest: Support verbose log output
authorPaul Barker <pbarker@konsulko.com>
Wed, 3 Jun 2020 20:07:37 +0000 (21:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Jun 2020 12:21:01 +0000 (13:21 +0100)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/context.py
meta/lib/oeqa/selftest/context.py

index 4705d608ac0d79bceeb37cd36fc6ed33bce0085e..7d3fa3b84a581237f80598df6da78fd3ab231174 100644 (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
 
index 17f2a0cf6bb16acc0f038121432eed469d4d6e12..7589ca3c1fd1545269ff5a2ed000d453f2fb848e 100644 (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):