aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/report_gen/run_robot_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/report_gen/run_robot_data.py')
-rwxr-xr-xresources/tools/report_gen/run_robot_data.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/tools/report_gen/run_robot_data.py b/resources/tools/report_gen/run_robot_data.py
index 1d102e1c1a..d5672b4ce5 100755
--- a/resources/tools/report_gen/run_robot_data.py
+++ b/resources/tools/report_gen/run_robot_data.py
@@ -247,6 +247,11 @@ def do_rst(data, args):
output = open(args.output, 'w')
output.write('\n.. |br| raw:: html\n\n <br />\n\n')
+ if (args.title):
+ output.write(args.title + '\n' +
+ hdrs[shift - 1] *
+ len(args.title) + '\n\n')
+
for item in data:
if int(item['level']) < start:
continue
@@ -468,6 +473,10 @@ def parse_args():
default=None,
help="Regular expression used to select test suites. "
"If None, all test suites are selected.")
+ parser.add_argument("-t", "--title",
+ type=str,
+ default=None,
+ help="Title of the output.")
return parser.parse_args()