Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
25a01850
Commit
25a01850
authored
7 years ago
by
Craig Tiller
Browse files
Options
Downloads
Plain Diff
Merge github.com:grpc/grpc into timer_pool
parents
66918a61
6815e414
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/run_tests/README.md
+1
-1
1 addition, 1 deletion
tools/run_tests/README.md
tools/run_tests/python_utils/report_utils.py
+9
-4
9 additions, 4 deletions
tools/run_tests/python_utils/report_utils.py
with
10 additions
and
5 deletions
tools/run_tests/README.md
+
1
−
1
View file @
25a01850
...
@@ -33,7 +33,7 @@ the script also supports orchestrating test runs with client and server running
...
@@ -33,7 +33,7 @@ the script also supports orchestrating test runs with client and server running
to BigQuery.
to BigQuery.
###### Example
###### Example
`tools/run_tests/run_peformance_tests.py -l c++ node`
`tools/run_tests/run_pe
r
formance_tests.py -l c++ node`
###### Useful options
###### Useful options
-
`--regex`
use regex to select particular scenarios to run.
-
`--regex`
use regex to select particular scenarios to run.
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/python_utils/report_utils.py
+
9
−
4
View file @
25a01850
...
@@ -64,19 +64,24 @@ def render_junit_xml_report(resultset, xml_report, suite_package='grpc',
...
@@ -64,19 +64,24 @@ def render_junit_xml_report(resultset, xml_report, suite_package='grpc',
root
=
ET
.
Element
(
'
testsuites
'
)
root
=
ET
.
Element
(
'
testsuites
'
)
testsuite
=
ET
.
SubElement
(
root
,
'
testsuite
'
,
id
=
'
1
'
,
package
=
suite_package
,
testsuite
=
ET
.
SubElement
(
root
,
'
testsuite
'
,
id
=
'
1
'
,
package
=
suite_package
,
name
=
suite_name
)
name
=
suite_name
)
failure_count
=
0
error_count
=
0
for
shortname
,
results
in
six
.
iteritems
(
resultset
):
for
shortname
,
results
in
six
.
iteritems
(
resultset
):
for
result
in
results
:
for
result
in
results
:
xml_test
=
ET
.
SubElement
(
testsuite
,
'
testcase
'
,
name
=
shortname
)
xml_test
=
ET
.
SubElement
(
testsuite
,
'
testcase
'
,
name
=
shortname
)
if
result
.
elapsed_time
:
if
result
.
elapsed_time
:
xml_test
.
set
(
'
time
'
,
str
(
result
.
elapsed_time
))
xml_test
.
set
(
'
time
'
,
str
(
result
.
elapsed_time
))
ET
.
SubElement
(
xml_test
,
'
system-out
'
).
text
=
_filter_msg
(
result
.
message
,
filtered_msg
=
_filter_msg
(
result
.
message
,
'
XML
'
)
'
XML
'
)
if
result
.
state
==
'
FAILED
'
:
if
result
.
state
==
'
FAILED
'
:
ET
.
SubElement
(
xml_test
,
'
failure
'
,
message
=
'
Failure
'
)
ET
.
SubElement
(
xml_test
,
'
failure
'
,
message
=
'
Failure
'
).
text
=
filtered_msg
failure_count
+=
1
elif
result
.
state
==
'
TIMEOUT
'
:
elif
result
.
state
==
'
TIMEOUT
'
:
ET
.
SubElement
(
xml_test
,
'
error
'
,
message
=
'
Timeout
'
)
ET
.
SubElement
(
xml_test
,
'
error
'
,
message
=
'
Timeout
'
).
text
=
filtered_msg
error_count
+=
1
elif
result
.
state
==
'
SKIPPED
'
:
elif
result
.
state
==
'
SKIPPED
'
:
ET
.
SubElement
(
xml_test
,
'
skipped
'
,
message
=
'
Skipped
'
)
ET
.
SubElement
(
xml_test
,
'
skipped
'
,
message
=
'
Skipped
'
)
testsuite
.
set
(
'
failures
'
,
str
(
failure_count
))
testsuite
.
set
(
'
errors
'
,
str
(
error_count
))
# ensure the report directory exists
# ensure the report directory exists
report_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
xml_report
))
report_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
xml_report
))
if
not
os
.
path
.
exists
(
report_dir
):
if
not
os
.
path
.
exists
(
report_dir
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment