From 4b22a112800f33dbd30adb070342d6e10b6e39bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Thu, 30 Apr 2026 13:14:49 +0300 Subject: [PATCH] Extend EMTEST_AUTOSKIP to cover missing pkg-config. --- test/test_other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_other.py b/test/test_other.py index d9938bbd1ba95..57acc0101c48e 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -274,8 +274,8 @@ def requires_pkg_config(func): @wraps(func) def decorated(self, *args, **kwargs): if not shutil.which('pkg-config'): - if 'EMTEST_SKIP_PKG_CONFIG' in os.environ: - self.skipTest('test requires pkg-config and EMTEST_SKIP_PKG_CONFIG is set') + if os.getenv('EMTEST_SKIP_PKG_CONFIG') == '1' or os.getenv('EMTEST_AUTOSKIP') == '1': + self.skipTest('test requires pkg-config and EMTEST_SKIP_PKG_CONFIG or EMTEST_AUTOSKIP is set') else: self.fail('pkg-config is required to run this test') return func(self, *args, **kwargs)