Commit e4d59a25 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Skip empty results file when generating reports.

parent 371a7668
......@@ -223,6 +223,7 @@ from matplotlib.backends.backend_pdf import PdfPages
import glob
import os
import sys
import re
user_re = re.compile('-(\d+)users-')
......@@ -238,6 +239,11 @@ def generateReport():
per_nb_users_report_dict = {}
for filename in filename_iter:
# There may be no results at all in case of errors
if not os.stat(filename).st_size:
print >>sys.stderr, "Ignoring empty file %s" % filename
report_dict = per_nb_users_report_dict.setdefault(
int(, {'filename': []})
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