Update report.py

This commit is contained in:
Alexander Kuzmenkov 2020-04-18 02:59:03 +03:00 committed by GitHub
parent 6793cd7cca
commit fb790ef82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,17 +256,18 @@ if args.report == 'main':
print(tableStart('Test times'))
print(tableHeader(columns))
runs = 11 # FIXME pass this as an argument
attrs = ['' for c in columns]
for r in rows:
if float(r[6]) > 22:
if float(r[6]) > 3 * runs:
# FIXME should be 15s max -- investigate parallel_insert
slow_average_tests += 1
attrs[6] = 'style="background: #ffb0a0"'
else:
attrs[6] = ''
if float(r[5]) > 30:
if float(r[5]) > 4 * runs:
slow_average_tests += 1
attrs[5] = 'style="background: #ffb0a0"'
else: