From 0b69c9ee6ca5188045a5927b41fa2666555631d9 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 7 Aug 2018 05:06:23 +0200 Subject: Allow calling a skip test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- xtesting/ci/tier_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtesting/ci/tier_handler.py') diff --git a/xtesting/ci/tier_handler.py b/xtesting/ci/tier_handler.py index 7a77e4cf..11a0858e 100644 --- a/xtesting/ci/tier_handler.py +++ b/xtesting/ci/tier_handler.py @@ -65,13 +65,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 -- cgit 1.2.3-korg