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

Commit

Permalink
Skip not yet supported onnx backend test cases in non CI environment (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bddppq authored and houseroad committed Feb 13, 2018
1 parent d530daa commit f29968c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/onnx_backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
pytest_plugins = 'onnx.backend.test.report',

backend_test = onnx.backend.test.BackendTest(c2, __name__)
# Skip vgg to speed up CI, skip others because onnx-caffe2 does not support them yet.
ci_blacklist = (r'(test_vgg19|test_vgg' # Speed up CI.
'|test_ceil.*|test_floor.*' # Does not support Ceil and Floor.
'|test_hardsigmoid.*|test_pow.*' # Does not support Hardsigmoid and Pow.
'|test_mean.*|test_hardmax.*' # Does not support Mean and Hardmax.
')')

backend_test.exclude(r'(test_ceil|test_floor' # Does not support Ceil and Floor.
'|test_hardsigmoid|test_pow' # Does not support Hardsigmoid and Pow.
'|test_mean|test_hardmax)') # Does not support Mean and Hardmax.

# Skip vgg to speed up CI
if 'CI' in os.environ:
backend_test.exclude(ci_blacklist)
backend_test.exclude(r'(test_vgg19|test_vgg)')

# import all test cases at global scope to make them visible to python.unittest
globals().update(backend_test
.enable_report()
Expand Down

0 comments on commit f29968c

Please sign in to comment.