We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8234f commit 4b22a11Copy full SHA for 4b22a11
1 file changed
test/test_other.py
@@ -274,8 +274,8 @@ def requires_pkg_config(func):
274
@wraps(func)
275
def decorated(self, *args, **kwargs):
276
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')
+ 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')
279
else:
280
self.fail('pkg-config is required to run this test')
281
return func(self, *args, **kwargs)
0 commit comments