@@ -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',
Add a convenience argument to the log subcommand to list all of the ptest logs in a testresults file. Signed-off-by: Ross Burton <ross.burton@arm.com> --- scripts/lib/resulttool/log.py | 5 +++++ 1 file changed, 5 insertions(+)