From 26615ac422e0591e23624d124488fb82cc472875 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sun, 16 Feb 2020 21:53:57 +0530 Subject: [PATCH] unit tests: Skip if pkg-config is not found Of course, this does not skip on the CI, but helps on Windows. --- run_unittests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/run_unittests.py b/run_unittests.py index 7c2ae0555..f26ab7e18 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -809,6 +809,7 @@ class InternalTests(unittest.TestCase): env.machines.host.system = 'windows' self._test_all_naming(cc, env, patterns, 'windows-mingw') + @skipIfNoPkgconfig def test_pkgconfig_parse_libs(self): ''' Unit test for parsing of pkg-config output to search for libraries