diff --git a/tests/unit/doc/test_task_samples.py b/tests/unit/doc/test_task_samples.py index 1df877fc..010750b7 100644 --- a/tests/unit/doc/test_task_samples.py +++ b/tests/unit/doc/test_task_samples.py @@ -33,6 +33,11 @@ class TaskSampleTestCase(test.TestCase): os.pardir, os.pardir, os.pardir, "samples", "tasks") + def setUp(self): + super(TaskSampleTestCase, self).setUp() + if os.environ.get("TOX_ENV_NAME") == "cover": + self.skipTest("There is no need to check samples in coverage job.") + @mock.patch("rally.task.engine.TaskEngine" "._validate_config_semantic") def test_schema_is_valid(self, diff --git a/tox.ini b/tox.ini index e2fc9ac2..1bcf26d7 100644 --- a/tox.ini +++ b/tox.ini @@ -9,6 +9,7 @@ setenv = VIRTUAL_ENV={envdir} LANGUAGE=en_US:en LC_ALL=C PYTHONHASHSEED=0 + TOX_ENV_NAME={envname} whitelist_externals = find rm make