Skip checking samples in coverage job
TaskSampleTestCase is not quick stuff. Tests from this testcase tests yaml/json files which are not relate to tests coverage of Rally code. Also, coverage job launchs this slow testcase twice. Let's use environment variable to identify job name and skip whole test case in case of coverage job. PS: coverage is not change in comparison with previous commit, where TaskSampleTestCase is launched. It is one more proof that this testcase doesn't have any unique calls to rally code. Change-Id: If0925bc37198092f5d9efadb6591ced25d75212c
This commit is contained in:
parent
b7af1ceb30
commit
8e7cfeba68
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user