diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-04-29 09:20:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-04-29 09:20:34 +0000 |
commit | 3aeebe978f0d1821133f8b554e5bed06eb88f9a8 (patch) | |
tree | bb4ec5c9f74a188769f1f41c808354e5097aeb02 /ci/tier_builder.py | |
parent | 5dfb6fb78a7d4339a5b68147b46ab8aa49ebf866 (diff) | |
parent | bbf10c2ae8c2205c89065d8d57e3340d9b2efd40 (diff) |
Merge "Create run_test.py using the tier mechanism to run the tests"
Diffstat (limited to 'ci/tier_builder.py')
-rw-r--r-- | ci/tier_builder.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ci/tier_builder.py b/ci/tier_builder.py index e66e97a38..82b58cd03 100644 --- a/ci/tier_builder.py +++ b/ci/tier_builder.py @@ -54,6 +54,27 @@ class TierBuilder: self.tier_objects.append(tier) + def get_tiers(self): + return self.tier_objects + + def get_tier(self, tier_name): + for i in range(0, len(self.tier_objects)): + if self.tier_objects[i].get_name() == tier_name: + return self.tier_objects[i] + 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): + return self.tier_objects[i].get_test(test_name) + return None + + def get_tests(self, tier_name): + for i in range(0, len(self.tier_objects)): + if self.tier_objects[i].get_name() == tier_name: + return self.tier_objects[i].get_tests() + return None + def __str__(self): output = "" for i in range(0, len(self.tier_objects)): |