fix python test runner wildcard handling

* fix opencv/opencv#19402
pull/19403/head
Dale Phurrough 4 years ago
parent ae42815b7d
commit 5c70a2015f
No known key found for this signature in database
GPG Key ID: E53384A29713D41F
  1. 4
      modules/python/test/test.py

@ -34,8 +34,8 @@ def load_tests(loader, tests, pattern):
else:
print('WARNING: OpenCV tests config file ({}) is missing, running subset of tests'.format(config_file))
tests_pattern = os.environ.get('OPENCV_PYTEST_FILTER', 'test_') + '*.py'
if tests_pattern != 'test_*py':
tests_pattern = os.environ.get('OPENCV_PYTEST_FILTER', 'test_*') + '.py'
if tests_pattern != 'test_*.py':
print('Tests filter: {}'.format(tests_pattern))
processed = set()

Loading…
Cancel
Save