Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Temporarily add '-s' to pytest cpu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DickJC123 committed Feb 18, 2022
1 parent f4e2f40 commit 4a9056a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,9 @@ cd_unittest_ubuntu() {

local mxnet_variant=${1:?"This function requires a mxnet variant as the first argument"}

OMP_NUM_THREADS=$(expr $(nproc) / 4) pytest -m 'not serial' -n 4 --durations=50 --verbose tests/python/unittest
pytest -m 'serial' --durations=50 --verbose tests/python/unittest
# Temporarily tell pytest to not capture output ('-s') to get more insight into Python: Aborted error
OMP_NUM_THREADS=$(expr $(nproc) / 4) pytest -m 'not serial' -n 4 --durations=50 --verbose -s --log-cli-level=DEBUG tests/python/unittest
pytest -m 'serial' --durations=50 --verbose -s --log-cli-level=DEBUG tests/python/unittest

# https://github.com/apache/incubator-mxnet/issues/11801
# if [[ ${mxnet_variant} = "cpu" ]] || [[ ${mxnet_variant} = "mkl" ]]; then
Expand Down

0 comments on commit 4a9056a

Please sign in to comment.