aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/report_gen/run_robot_data.py
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2017-04-13 22:06:17 +0200
committerPeter Mikus <pmikus@cisco.com>2017-04-21 19:09:04 +0000
commit5b702673375a2a098311c23ab83487d3e1e02e72 (patch)
tree649fe07b7d5caacba21baea43cf8253d9e7bd6c3 /resources/tools/report_gen/run_robot_data.py
parent7e77c9160cc3eb6f7f585df70231c4eeb07421d4 (diff)
Report generation script updates
- Add new type of throughput plots - Update Sphinx, Sphinx-rtd-theme and Plotly packages - Add auto generation of detailed test results - Small fixes Change-Id: I706777160a7f166e0a335c64428d10cb546fa854 Signed-off-by: pmikus <pmikus@cisco.com> Signed-off-by: Peter Mikus <pmikus@cisco.com>
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()