diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-10 11:38:32 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-16 15:01:57 +0200 |
commit | 3218f1fa1d7bb265f3b5c50e0853a00446ac2e93 (patch) | |
tree | 6c87d9a4a2c15d6a0830247dd9892bfdc54401bf /functest/ci/tier_builder.py | |
parent | ccb98c22390fd97a3bb55aa225c7241cc4daa85d (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/tier_builder.py')
-rw-r--r-- | functest/ci/tier_builder.py | 6 |
1 files changed, 6 insertions, 0 deletions
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): |