Skip to content

Commit 4b22a11

Browse files
committed
Extend EMTEST_AUTOSKIP to cover missing pkg-config.
1 parent 2a8234f commit 4b22a11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ def requires_pkg_config(func):
274274
@wraps(func)
275275
def decorated(self, *args, **kwargs):
276276
if not shutil.which('pkg-config'):
277-
if 'EMTEST_SKIP_PKG_CONFIG' in os.environ:
278-
self.skipTest('test requires pkg-config and EMTEST_SKIP_PKG_CONFIG is set')
277+
if os.getenv('EMTEST_SKIP_PKG_CONFIG') == '1' or os.getenv('EMTEST_AUTOSKIP') == '1':
278+
self.skipTest('test requires pkg-config and EMTEST_SKIP_PKG_CONFIG or EMTEST_AUTOSKIP is set')
279279
else:
280280
self.fail('pkg-config is required to run this test')
281281
return func(self, *args, **kwargs)

0 commit comments

Comments
 (0)