From 97a00ec7002fdbeea8471fea3e4e7ca132a99630 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Mon, 21 Sep 2015 16:53:08 +0300 Subject: [PATCH] [COVERAGE] Turn off coverage We need to fix .coveragerc and turn off coverage in one patch, since cover.sh scrip launch check for previous patch which contain uncompatible with coverage 4.0 option. Also, fix for floating bug is required. Change-Id: I4cc49c01bc5bb633f08353762f963cb4343fc6cb Partial-Bug: #1497897 --- .coveragerc | 1 - tests/ci/cover.sh | 2 ++ tests/unit/verification/test_tempest.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 67d82be57e..e72d1d1229 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,5 +3,4 @@ branch = True source = rally [report] -ignore-errors = True precision = 3 diff --git a/tests/ci/cover.sh b/tests/ci/cover.sh index 9a7d72247d..b2a600fb7f 100755 --- a/tests/ci/cover.sh +++ b/tests/ci/cover.sh @@ -15,6 +15,8 @@ # License for the specific language governing permissions and limitations # under the License. +exit 0 + ALLOWED_EXTRA_MISSING=4 show_diff () { diff --git a/tests/unit/verification/test_tempest.py b/tests/unit/verification/test_tempest.py index e5b12da4c9..3068eb8222 100644 --- a/tests/unit/verification/test_tempest.py +++ b/tests/unit/verification/test_tempest.py @@ -263,7 +263,7 @@ class TempestInstallAndUninstallTestCase(BaseTestCase): @mock.patch(TEMPEST_PATH + ".tempest.subprocess.check_call") @mock.patch("shutil.copytree") @mock.patch(TEMPEST_PATH + ".tempest.Tempest._clone") - @mock.patch("os.path.exists", return_value=False) + @mock.patch(TEMPEST_PATH + ".tempest.os.path.exists", return_value=False) def test_install_failed(self, mock_exists, mock_tempest__clone, mock_copytree, mock_check_call, mock_tempest__install_venv,