aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/tier_handler.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-10-16 02:34:03 +0000
committerLinda Wang <wangwulin@huawei.com>2017-10-16 02:34:03 +0000
commit801a53baa1229fd4a88bb1aad692b86f536d970d (patch)
tree7cac7b39fb890c94a1c6ece0cab048bc23f7d84b /functest/ci/tier_handler.py
parentfedc26596ada9d35bb49f08259a7e5ba4cf13ae7 (diff)
Enhance the compatibility judgement of INSTALLER
When the env INSTALLER_TYPE is None, while the var installer in dependencies is not None, the current test case should not be run. Change-Id: If1b67f16f39d5c44b2c3729819dd665faed41b73 Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/ci/tier_handler.py')
-rw-r--r--functest/ci/tier_handler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/functest/ci/tier_handler.py b/functest/ci/tier_handler.py
index dd3e77ce..cbabe63b 100644
--- a/functest/ci/tier_handler.py
+++ b/functest/ci/tier_handler.py
@@ -121,6 +121,9 @@ class TestCase(object):
def is_compatible(self, ci_installer, ci_scenario):
try:
+ if (self.is_none(ci_installer) and not
+ self.is_none(self.dependency.get_installer())):
+ return False
if not self.is_none(ci_installer):
if re.search(self.dependency.get_installer(),
ci_installer) is None: