Commit 814e42cc authored by Ivan Tyagov's avatar Ivan Tyagov

Fixup: always use first Test Result Line from Test Result instead of random one.

parent 8af897b6
......@@ -2,12 +2,13 @@
Return list of Test Suites being tested by introspecting Test Result Lines
"""
test_suite_list = []
test_result_line_list = context.objectValues(portal_type = 'Test Result Line')
test_result_line_list = context.objectValues(
portal_type = 'Test Result Line',
sort_on="int_index")
if len(test_result_line_list) > 0:
test_result_line = test_result_line_list[0]
stdout = test_result_line.getProperty('stdout')
context.log(stdout)
for i in stdout.split(';'):
test_suite_list.append(i.split(':')[0].strip())
......
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