[rtems-tools commit] Fix exception when no output format is specified
Chris Johns
chrisj at rtems.org
Mon Sep 23 22:36:54 UTC 2019
Module: rtems-tools
Branch: master
Commit: e9f48e9face6c4dea62712d73b35412c0fe10332
Changeset: http://git.rtems.org/rtems-tools/commit/?id=e9f48e9face6c4dea62712d73b35412c0fe10332
Author: Kinsey Moore <kinsey.moore at oarcorp.com>
Date: Mon Sep 23 13:33:34 2019 +0000
Fix exception when no output format is specified
The JSON log generation patch introduced a bug when the report output
generation was not configured due to attempting to iterate over 'None'.
---
tester/rt/test.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tester/rt/test.py b/tester/rt/test.py
index ebdd7ed..3cd9b48 100644
--- a/tester/rt/test.py
+++ b/tester/rt/test.py
@@ -345,6 +345,8 @@ def run(args, command_path = None):
raise error.general('invalid RTEMS report formats option')
report_formats = report_formats[1].split(',')
check_report_formats(report_formats, report_location)
+ else:
+ report_formats = []
log.notice('RTEMS Testing - Tester, %s' % (version.string()))
if opts.find_arg('--list-bsps'):
bsps.list(opts)
More information about the vc
mailing list