Commit 54398666 authored by Ivan Tyagov's avatar Ivan Tyagov

Test Result Line do not have properly set int_index, instead title have been...

Test Result Line do not have properly set int_index, instead title have been used in past. Until properly set (int_index) use current way for sorting. This is especially important for Scalability Tests's graphics.
parent 05f913a0
......@@ -2,7 +2,11 @@ from Products.PythonScripts.standard import Object
import json
# Get result lines
test_result_lines = context.objectValues(portal_type="Test Result Line", sort_on='int_index')
test_result_lines = context.objectValues(portal_type="Test Result Line")
# XXX: Test Result Line misses int_index and test title is used for this.
# we need to fix this but for backwards compatability use it now.
test_result_lines = sorted(test_result_lines, key=lambda x: int(x.getTitle()))
# Create a dict containing stats for each test
tests = []
......
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