Skip to content

Commit d17b099

Browse files
committed
ts: don't run DNN tests with large models (valgrind)
1 parent 1516103 commit d17b099

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/ts/misc/run_long.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
LONG_TESTS_DEBUG_VALGRIND = [
99
('calib3d', 'Calib3d_InitUndistortRectifyMap.accuracy', 2017.22),
10+
('dnn', 'Reproducibility*', 1000), # large DNN models
1011
('features2d', 'Features2d_Feature2d.no_crash', 1235.68),
1112
('ml', 'ML_RTrees.regression', 1423.47),
1213
('optflow', 'DenseOpticalFlow_DeepFlow.ReferenceAccuracy', 1360.95),
@@ -43,10 +44,8 @@
4344
]
4445

4546

46-
def longTestFilter(data):
47-
res = ['*', '-']
48-
for _, v, _ in data:
49-
res.append(v)
47+
def longTestFilter(data, module = None):
48+
res = ['*', '-'] + [v for _, v, m in data if module is None or m == module]
5049
return '--gtest_filter={}'.format(':'.join(res))
5150

5251

0 commit comments

Comments
 (0)