diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-07 05:06:23 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-07 05:45:12 +0200 |
commit | 0e7ac62b724393529172ab276c89b97e2c8539aa (patch) | |
tree | e7b93cb797c85a050bffda5ff4689ff1809a2784 /xtesting/ci/tier_handler.py | |
parent | 9bc7599c56b2940aa712efdbac20c489659571f9 (diff) |
Allow calling a skip test
run_tests shouldn't return an incorrect value if the test is skipped.
Else it simply forbids running tests in parallel (one test per
thread).
Change-Id: I07efca28dbf6cf1c29ec8e5c999e38cfe3ad0aad
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 0b69c9ee6ca5188045a5927b41fa2666555631d9)
Diffstat (limited to 'xtesting/ci/tier_handler.py')
-rw-r--r-- | xtesting/ci/tier_handler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtesting/ci/tier_handler.py b/xtesting/ci/tier_handler.py index 0adc9b81..51f031c0 100644 --- a/xtesting/ci/tier_handler.py +++ b/xtesting/ci/tier_handler.py @@ -67,13 +67,13 @@ class Tier(object): def get_test(self, test_name): if self.is_test(test_name): - for test in self.tests_array: + for test in self.tests_array + self.skipped_tests_array: if test.get_name() == test_name: return test return None def is_test(self, test_name): - for test in self.tests_array: + for test in self.tests_array + self.skipped_tests_array: if test.get_name() == test_name: return True return False |