From a90b0925b184f675b037530ca6cee98ef3db7d39 Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Mon, 25 Mar 2019 13:52:33 +0000
Subject: [PATCH] SW-652: made python-coverage.sh python3 compliant.

---
 LCS/PyCommon/test/python-coverage.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/LCS/PyCommon/test/python-coverage.sh b/LCS/PyCommon/test/python-coverage.sh
index 87452ffe0b3..ed636288d92 100755
--- a/LCS/PyCommon/test/python-coverage.sh
+++ b/LCS/PyCommon/test/python-coverage.sh
@@ -4,10 +4,10 @@
 COVERAGE_EXCLUDE_LINES="[report]\nexclude_lines = \n  if __name__ == .__main__.\n  def main\n"
 
 # Determine python-coverage executable
-if type "coverage" >& /dev/null; then
-  COVERAGE=coverage
-elif type "python-coverage" >& /dev/null; then
-  COVERAGE=python-coverage
+if type "coverage3" >& /dev/null; then
+  COVERAGE=coverage3
+elif type "python3-coverage" >& /dev/null; then
+  COVERAGE=python3-coverage
 else
   COVERAGE=""
 fi
@@ -43,9 +43,9 @@ function python_coverage_test {
       exit $RESULT
   else
       #python-coverage not available
-      echo "Please run: 'pip install python-coverage' to enable code coverage reporting of the unit tests"
+      echo "Please run: 'pip3 install coverage' to enable code coverage reporting of the unit tests"
       #run plain test script
-      python "$@"
+      python3 "$@"
   fi
 }
 
-- 
GitLab