Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
a46f8683
Commit
a46f8683
authored
Sep 25, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d0c61cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
go/neo/t/nxd/nxdtest
go/neo/t/nxd/nxdtest
+6
-7
No files found.
go/neo/t/nxd/nxdtest
View file @
a46f8683
...
...
@@ -254,17 +254,16 @@ class PyTest:
return
int
(
m
.
group
(
1
))
stat
=
{}
def
s
et_sta
t
(
stat_key
,
from_name
):
def
s
tat_se
t
(
stat_key
,
from_name
):
v
=
get
(
from_name
)
if
v
is
None
:
return
stat
[
stat_key
]
=
v
set_stat
(
'skip_count'
,
'skipped'
)
set_stat
(
'error_count'
,
'failed'
)
# XXX failure_count <- ?
nxfail
=
get
(
'xfailed'
,
0
)
npass
=
get
(
'passed'
,
0
)
stat
[
'test_count'
]
=
npass
+
nxfail
+
stat
.
get
(
'skip_count'
,
0
)
+
stat
.
get
(
'error_count'
,
0
)
stat_set
(
'skip_count'
,
'skipped'
)
stat_set
(
'error_count'
,
'failed'
)
stat_set
(
'failure_count'
,
'xfailed'
)
# XXX ok?
npass
=
get
(
'passed'
,
0
)
stat
[
'test_count'
]
=
npass
+
stat
.
get
(
'failure_count'
,
0
)
+
stat
.
get
(
'skip_count'
,
0
)
+
stat
.
get
(
'error_count'
,
0
)
return
stat
def
unittest_summary
(
out
):
# -> status_dict
...
...
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