Skip to content

Commit

Permalink
Merge pull request pytorch#88 from pjh5/skip_test
Browse files Browse the repository at this point in the history
Skip jit tests in conda nightlies
  • Loading branch information
pjh5 authored Aug 30, 2018
2 parents 5ee7c45 + 0ef9fd0 commit cd10868
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions conda/build_pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,23 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
conda install -y "$built_package"

# Run tests
tests_to_skip=()
if [[ "$ALLOW_DISTRIBUTED_TEST_ERRORS" ]]; then
# Distributed tests don't work on the shared gpus of CI
tests_to_skip+=("distributed" "c10d")
fi
if [[ "$py_ver" == '2.7' ]]; then
# test_wrong_return_type doesn't work on the latest conda python 2.7
# version TODO verify this
tests_to_skip+=('jit')
fi
pushd "$pytorch_rootdir"
if [[ -n "$RUN_TEST_PARAMS" ]]; then
python test/run_test.py ${RUN_TEST_PARAMS[@]}
elif [[ "$ALLOW_DISTRIBUTED_TEST_ERRORS" ]]; then
python test/run_test.py -x distributed c10d
# See manywheel/build_common.sh for why these are split
elif [[ -n "$tests_to_skip" ]]; then
python test/run_test.py -x ${tests_to_skip[@]}
set +e
python test/run_test.py -i distributed c10d
python test/run_test.py -i ${tests_to_skip[@]}
set -e
else
python test/run_test.py
Expand Down

0 comments on commit cd10868

Please sign in to comment.