aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-05-10 11:38:32 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-05-16 15:01:57 +0200
commit3218f1fa1d7bb265f3b5c50e0853a00446ac2e93 (patch)
tree6c87d9a4a2c15d6a0830247dd9892bfdc54401bf /functest/ci
parentccb98c22390fd97a3bb55aa225c7241cc4daa85d (diff)
Fix how to get tier_name
The tier name was incorrect when passing a test case as run_test.py arg. Change-Id: I6f439fc7b90facb3f0553798bd1fe06ac9f09475 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/ci')
-rwxr-xr-xfunctest/ci/run_tests.py2
-rw-r--r--functest/ci/tier_builder.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index 1396644f..7035992b 100755
--- a/functest/ci/run_tests.py
+++ b/functest/ci/run_tests.py
@@ -243,7 +243,7 @@ def main(**kwargs):
run_tier(_tiers.get_tier(kwargs['test']))
elif _tiers.get_test(kwargs['test']):
run_test(_tiers.get_test(kwargs['test']),
- _tiers.get_tier(kwargs['test']),
+ _tiers.get_tier_name(kwargs['test']),
kwargs['test'])
elif kwargs['test'] == "all":
run_all(_tiers)
diff --git a/functest/ci/tier_builder.py b/functest/ci/tier_builder.py
index 44b27258..e1939c37 100644
--- a/functest/ci/tier_builder.py
+++ b/functest/ci/tier_builder.py
@@ -72,6 +72,12 @@ class TierBuilder(object):
return self.tier_objects[i]
return None
+ def get_tier_name(self, test_name):
+ for i in range(0, len(self.tier_objects)):
+ if self.tier_objects[i].is_test(test_name):
+ return self.tier_objects[i].name
+ return None
+
def get_test(self, test_name):
for i in range(0, len(self.tier_objects)):
if self.tier_objects[i].is_test(test_name):