aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/tier_builder.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-05-16 11:28:14 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2017-05-16 14:29:48 +0000
commitd180eabc5a2c2453d04bb4a080874c329605c026 (patch)
treef41fb4c9cfcbe62c03868f25bc6c673a66651ecd /functest/ci/tier_builder.py
parent8cfa8d15a572cbae8bd46dae2a19f9b764684a12 (diff)
Add enabled flag in testcases.yaml
This will allow enable/disable test cases directly using true/false. Change-Id: Iaa7d051ebb8dd9e5a6f835a823f58f1e17a87b8d Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'functest/ci/tier_builder.py')
-rw-r--r--functest/ci/tier_builder.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/functest/ci/tier_builder.py b/functest/ci/tier_builder.py
index e1939c37..12562f09 100644
--- a/functest/ci/tier_builder.py
+++ b/functest/ci/tier_builder.py
@@ -47,12 +47,15 @@ class TierBuilder(object):
dep = th.Dependency(installer, scenario)
testcase = th.TestCase(name=dic_testcase['case_name'],
+ enabled=dic_testcase.get(
+ 'enabled', True),
dependency=dep,
criteria=dic_testcase['criteria'],
blocking=dic_testcase['blocking'],
clean_flag=dic_testcase['clean_flag'],
description=dic_testcase['description'])
- if testcase.is_compatible(self.ci_installer, self.ci_scenario):
+ if (testcase.is_compatible(self.ci_installer, self.ci_scenario)
+ and testcase.is_enabled()):
tier.add_test(testcase)
self.tier_objects.append(tier)