mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
resulttool: add log --list-ptest
Add a convenience argument to the log subcommand to list all of the ptest logs in a testresults file. (From OE-Core rev: cd2d7adf02005d46f19c93a40db1e10ce01ac261) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
37ab2ecbb7
commit
9db9f8c575
@@ -34,6 +34,9 @@ def log(args, logger):
|
||||
return 1
|
||||
|
||||
for _, run_name, _, r in resultutils.test_run_results(results):
|
||||
if args.list_ptest:
|
||||
print('\n'.join(sorted(r['ptestresult.sections'].keys())))
|
||||
|
||||
if args.dump_ptest:
|
||||
for sectname in ['ptestresult.sections', 'ltpposixresult.sections', 'ltpresult.sections']:
|
||||
if sectname in r:
|
||||
@@ -86,6 +89,8 @@ def register_commands(subparsers):
|
||||
parser.set_defaults(func=log)
|
||||
parser.add_argument('source',
|
||||
help='the results file/directory/URL to import')
|
||||
parser.add_argument('--list-ptest', action='store_true',
|
||||
help='list the ptest test names')
|
||||
parser.add_argument('--ptest', action='append', default=[],
|
||||
help='show logs for a ptest')
|
||||
parser.add_argument('--dump-ptest', metavar='DIR',
|
||||
|
||||
Reference in New Issue
Block a user