Commit b1ac3398 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Output 6 diagrams per page instead of 12 for reports

parent 6773423b
...@@ -227,6 +227,8 @@ import re ...@@ -227,6 +227,8 @@ import re
user_re = re.compile('-(\d+)users-') user_re = re.compile('-(\d+)users-')
DIAGRAM_PER_PAGE = 6
def generateReport(): def generateReport():
argument_namespace = parseArguments() argument_namespace = parseArguments()
...@@ -248,11 +250,13 @@ def generateReport(): ...@@ -248,11 +250,13 @@ def generateReport():
argument_namespace, report_dict['filename']) argument_namespace, report_dict['filename'])
title = "Ran suites with %d users" % len(report_dict['filename']) title = "Ran suites with %d users" % len(report_dict['filename'])
for slice_start_idx in range(0, len(stat_list), 12): for slice_start_idx in range(0, len(stat_list), DIAGRAM_PER_PAGE):
if slice_start_idx != 0: if slice_start_idx == DIAGRAM_PER_PAGE:
title += ' (Ctd.)' title += ' (Ctd.)'
drawBarDiagram(pdf, title, stat_list[slice_start_idx:slice_start_idx + 12]) drawBarDiagram(pdf, title,
stat_list[slice_start_idx:slice_start_idx +
DIAGRAM_PER_PAGE])
report_dict['stats'] = stat_list report_dict['stats'] = stat_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment