0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. From b4014e3d1d9e38b25f2840e65e2acd757f3e5d41 Mon Sep 17 00:00:00 2001
  2. From: Yi Fan Yu <yifan.yu@windriver.com>
  3. Date: Thu, 1 Apr 2021 13:08:37 -0700
  4. Subject: [PATCH] Skip failing tests due to load variability on YP AB
  5. Skip these tests until AB-INT is solved.
  6. [YOCTO #14296]
  7. Upstream-Status: Inappropriate [OE-Specific]
  8. Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
  9. Skip two additional tests due to suspected load variability failures.
  10. [YOCTO #15131]
  11. [YOCTO #15177]
  12. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
  13. ---
  14. Lib/test/_test_multiprocessing.py | 3 +++
  15. Lib/test/test_time.py | 2 ++
  16. 2 files changed, 5 insertions(+)
  17. diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
  18. index 3b4415b..1f94dec 100644
  19. --- a/Lib/test/_test_multiprocessing.py
  20. +++ b/Lib/test/_test_multiprocessing.py
  21. @@ -688,6 +688,7 @@ class _TestProcess(BaseTestCase):
  22. close_queue(q)
  23. @support.requires_resource('walltime')
  24. + @unittest.skip('timing related test, dependent on load')
  25. def test_many_processes(self):
  26. if self.TYPE == 'threads':
  27. self.skipTest('test not appropriate for {}'.format(self.TYPE))
  28. @@ -2211,6 +2212,7 @@ class _TestBarrier(BaseTestCase):
  29. except threading.BrokenBarrierError:
  30. results.append(True)
  31. + @unittest.skip('timing related test, dependent on load')
  32. def test_timeout(self):
  33. """
  34. Test wait(timeout)
  35. @@ -5208,6 +5210,7 @@ class TestWait(unittest.TestCase):
  36. time.sleep(period)
  37. @support.requires_resource('walltime')
  38. + @unittest.skip('timing related test, dependent on load')
  39. def test_wait_integer(self):
  40. from multiprocessing.connection import wait
  41. diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
  42. index 9463add..4e0f39d 100644
  43. --- a/Lib/test/test_time.py
  44. +++ b/Lib/test/test_time.py
  45. @@ -536,6 +536,7 @@ class TimeTestCase(unittest.TestCase):
  46. @unittest.skipIf(
  47. support.is_wasi, "process_time not available on WASI"
  48. )
  49. + @unittest.skip('timing related test, dependent on load')
  50. def test_process_time(self):
  51. # process_time() should not include time spend during a sleep
  52. start = time.process_time()
  53. @@ -549,6 +550,7 @@ class TimeTestCase(unittest.TestCase):
  54. self.assertTrue(info.monotonic)
  55. self.assertFalse(info.adjustable)
  56. + @unittest.skip('timing related test, dependent on load')
  57. def test_thread_time(self):
  58. if not hasattr(time, 'thread_time'):
  59. if sys.platform.startswith(('linux', 'win')):