Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
814e42cc
Commit
814e42cc
authored
Sep 11, 2019
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup: always use first Test Result Line from Test Result instead of random one.
parent
8af897b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResult_getTestSuiteList.py
...tal_skins/erp5_test_result/TestResult_getTestSuiteList.py
+3
-2
No files found.
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResult_getTestSuiteList.py
View file @
814e42cc
...
@@ -2,12 +2,13 @@
...
@@ -2,12 +2,13 @@
Return list of Test Suites being tested by introspecting Test Result Lines
Return list of Test Suites being tested by introspecting Test Result Lines
"""
"""
test_suite_list
=
[]
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
:
if
len
(
test_result_line_list
)
>
0
:
test_result_line
=
test_result_line_list
[
0
]
test_result_line
=
test_result_line_list
[
0
]
stdout
=
test_result_line
.
getProperty
(
'stdout'
)
stdout
=
test_result_line
.
getProperty
(
'stdout'
)
context
.
log
(
stdout
)
for
i
in
stdout
.
split
(
';'
):
for
i
in
stdout
.
split
(
';'
):
test_suite_list
.
append
(
i
.
split
(
':'
)[
0
].
strip
())
test_suite_list
.
append
(
i
.
split
(
':'
)[
0
].
strip
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment