aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-07 05:06:23 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-07 05:45:12 +0200
commit0e7ac62b724393529172ab276c89b97e2c8539aa (patch)
treee7b93cb797c85a050bffda5ff4689ff1809a2784 /xtesting/tests/unit/ci
parent9bc7599c56b2940aa712efdbac20c489659571f9 (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/tests/unit/ci')
-rw-r--r--xtesting/tests/unit/ci/test_tier_builder.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/xtesting/tests/unit/ci/test_tier_builder.py b/xtesting/tests/unit/ci/test_tier_builder.py
index 402fc664..0b42bf5c 100644
--- a/xtesting/tests/unit/ci/test_tier_builder.py
+++ b/xtesting/tests/unit/ci/test_tier_builder.py
@@ -68,8 +68,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')