Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Charles Ferguson
streamedinput
Commits
cb444a28
Commit
cb444a28
authored
May 27, 2017
by
Charles Ferguson
Browse files
Fix for coverage failures when only one python file
parent
24dd437d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
scripts/common.python
scripts/common.python
+3
-2
No files found.
scripts/common.python
View file @
cb444a28
...
...
@@ -234,8 +234,9 @@ function python_process_coverage() {
done
coverage_percentage
=
$(
coverage report
--omit
"
${
ignore_options
}
"
\
| egrep
-o
"^TOTAL.*([0-9
\.
]+)%"
\
|
awk
'END { print int($6) }'
)
|
tail
-1
\
|
sed
-n
's/^.*[^0-9]\([0-9][0-9\.]*\)%.*$/\1/ p'
\
|
awk
'END { print int($1) }'
)
echo
"Python coverage:
${
coverage_percentage
}
%"
}
...
...
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