Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From 13aa6449c47980c7270dad2527c3911517bf34e6 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 2 | From: Tim Orling <timothy.t.orling@intel.com> |
| 3 | Date: Fri, 18 Jun 2021 11:56:50 -0700 |
| 4 | Subject: [PATCH] test_ctypes.test_find: skip without tools-sdk |
| 5 | |
| 6 | These tests need full packagegroup-core-buildessential, the |
| 7 | easiest way to dynamically check for that is looking for |
| 8 | 'tools-sdk' in IMAGE_FEATURES. |
| 9 | |
| 10 | Upstream-Status: Inappropriate [oe-specific] |
| 11 | |
| 12 | Signed-off-by: Tim Orling <timothy.t.orlign@intel.com> |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 13 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 14 | --- |
| 15 | Lib/ctypes/test/test_find.py | 2 ++ |
| 16 | 1 file changed, 2 insertions(+) |
| 17 | |
| 18 | diff --git a/Lib/ctypes/test/test_find.py b/Lib/ctypes/test/test_find.py |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 19 | index 1ff9d01..59def26 100644 |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 20 | --- a/Lib/ctypes/test/test_find.py |
| 21 | +++ b/Lib/ctypes/test/test_find.py |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 22 | @@ -113,10 +113,12 @@ class FindLibraryLinux(unittest.TestCase): |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 23 | # LD_LIBRARY_PATH) |
| 24 | self.assertEqual(find_library(libname), 'lib%s.so' % libname) |
| 25 | |
| 26 | + @unittest.skip("Needs IMAGE_FEATURE += \"tools-sdk\"") |
| 27 | def test_find_library_with_gcc(self): |
| 28 | with unittest.mock.patch("ctypes.util._findSoname_ldconfig", lambda *args: None): |
| 29 | self.assertNotEqual(find_library('c'), None) |
| 30 | |
| 31 | + @unittest.skip("Needs IMAGE_FEATURE += \"tools-sdk\"") |
| 32 | def test_find_library_with_ld(self): |
| 33 | with unittest.mock.patch("ctypes.util._findSoname_ldconfig", lambda *args: None), \ |
| 34 | unittest.mock.patch("ctypes.util._findLib_gcc", lambda *args: None): |