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/tests/unit/ci/test_tier_builder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xtesting/tests/unit') diff --git a/xtesting/tests/unit/ci/test_tier_builder.py b/xtesting/tests/unit/ci/test_tier_builder.py index 88018472..70a7951a 100644 --- a/xtesting/tests/unit/ci/test_tier_builder.py +++ b/xtesting/tests/unit/ci/test_tier_builder.py @@ -66,8 +66,9 @@ class TierBuilderTesting(unittest.TestCase): self.tier_obj.get_test('test_name')) def test_get_test_disabled(self): - self.assertEqual(self.tierbuilder.get_test('test_name_disabled'), None) - self.assertEqual(self.tier_obj.get_test('test_name_disabled'), None) + self.assertEqual( + self.tierbuilder.get_test('test_name_disabled'), + self.tier_obj.get_test('test_name_disabled')) self.assertEqual( self.tier_obj.get_skipped_test()[0].name, 'test_name_disabled') -- cgit 1.2.3-korg