diff options
| author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-08-16 08:50:34 -0400 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2023-09-18 13:51:27 -0400 |
| commit | 0eae4e0936181b7f89d73fcb15d752cdf1bea05a (patch) | |
| tree | 33bc34e6570acda06e42645339b0cd9b3d46cad7 /unittests/linuxliketests.py | |
| parent | 2a6245e6b3079f5775ca6fb3695d3cbe8cc1932e (diff) | |
| download | meson-0eae4e0936181b7f89d73fcb15d752cdf1bea05a.tar.gz | |
pkgconfig: Restore logging of pkg-config version
While at it, make more methods private by storing the version found on
the instance. That avoids having to call check_pkgconfig() as static
method from unittests.
Diffstat (limited to 'unittests/linuxliketests.py')
| -rw-r--r-- | unittests/linuxliketests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/linuxliketests.py b/unittests/linuxliketests.py index cbce5229d..8760fae1a 100644 --- a/unittests/linuxliketests.py +++ b/unittests/linuxliketests.py @@ -174,7 +174,7 @@ class LinuxlikeTests(BasePlatformTests): self.assertEqual(libhello_nolib.get_variable(pkgconfig='foo'), 'bar') self.assertEqual(libhello_nolib.get_variable(pkgconfig='prefix'), self.prefix) impl = libhello_nolib.pkgconfig - if not isinstance(impl, PkgConfigCLI) or version_compare(PkgConfigCLI.check_pkgconfig(env, impl.pkgbin),">=0.29.1"): + if not isinstance(impl, PkgConfigCLI) or version_compare(impl.pkgbin_version, ">=0.29.1"): self.assertEqual(libhello_nolib.get_variable(pkgconfig='escaped_var'), r'hello\ world') self.assertEqual(libhello_nolib.get_variable(pkgconfig='unescaped_var'), 'hello world') |
