Skip to content
This repository was archived by the owner on Aug 30, 2018. It is now read-only.

Commit f29968c

Browse files
bddppqhouseroad
authored andcommitted
Skip not yet supported onnx backend test cases in non CI environment (#229)
1 parent d530daa commit f29968c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/onnx_backend_test.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
pytest_plugins = 'onnx.backend.test.report',
1515

1616
backend_test = onnx.backend.test.BackendTest(c2, __name__)
17-
# Skip vgg to speed up CI, skip others because onnx-caffe2 does not support them yet.
18-
ci_blacklist = (r'(test_vgg19|test_vgg' # Speed up CI.
19-
'|test_ceil.*|test_floor.*' # Does not support Ceil and Floor.
20-
'|test_hardsigmoid.*|test_pow.*' # Does not support Hardsigmoid and Pow.
21-
'|test_mean.*|test_hardmax.*' # Does not support Mean and Hardmax.
22-
')')
17+
18+
backend_test.exclude(r'(test_ceil|test_floor' # Does not support Ceil and Floor.
19+
'|test_hardsigmoid|test_pow' # Does not support Hardsigmoid and Pow.
20+
'|test_mean|test_hardmax)') # Does not support Mean and Hardmax.
21+
22+
# Skip vgg to speed up CI
2323
if 'CI' in os.environ:
24-
backend_test.exclude(ci_blacklist)
24+
backend_test.exclude(r'(test_vgg19|test_vgg)')
25+
2526
# import all test cases at global scope to make them visible to python.unittest
2627
globals().update(backend_test
2728
.enable_report()

0 commit comments

Comments
 (0)