diff options
Diffstat (limited to 'functest/ci')
-rwxr-xr-x | functest/ci/run_tests.py | 2 | ||||
-rw-r--r-- | functest/ci/tier_builder.py | 6 |
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): |