Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
a90b0925
Commit
a90b0925
authored
6 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-652
: made python-coverage.sh python3 compliant.
parent
cd61a015
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/PyCommon/test/python-coverage.sh
+6
-6
6 additions, 6 deletions
LCS/PyCommon/test/python-coverage.sh
with
6 additions
and
6 deletions
LCS/PyCommon/test/python-coverage.sh
+
6
−
6
View file @
a90b0925
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
COVERAGE_EXCLUDE_LINES
=
"[report]
\n
exclude_lines =
\n
if __name__ == .__main__.
\n
def main
\n
"
COVERAGE_EXCLUDE_LINES
=
"[report]
\n
exclude_lines =
\n
if __name__ == .__main__.
\n
def main
\n
"
# Determine python-coverage executable
# Determine python-coverage executable
if
type
"coverage"
>
& /dev/null
;
then
if
type
"coverage
3
"
>
& /dev/null
;
then
COVERAGE
=
coverage
COVERAGE
=
coverage
3
elif
type
"python-coverage"
>
& /dev/null
;
then
elif
type
"python
3
-coverage"
>
& /dev/null
;
then
COVERAGE
=
python-coverage
COVERAGE
=
python
3
-coverage
else
else
COVERAGE
=
""
COVERAGE
=
""
fi
fi
...
@@ -43,9 +43,9 @@ function python_coverage_test {
...
@@ -43,9 +43,9 @@ function python_coverage_test {
exit
$RESULT
exit
$RESULT
else
else
#python-coverage not available
#python-coverage not available
echo
"Please run: 'pip install
python-
coverage' to enable code coverage reporting of the unit tests"
echo
"Please run: 'pip
3
install coverage' to enable code coverage reporting of the unit tests"
#run plain test script
#run plain test script
python
"
$@
"
python
3
"
$@
"
fi
fi
}
}
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