Skip to content

Commit

Permalink
Merge pull request tensorflow#476 from tensorflow:brianwa84-patch-1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 254831797
  • Loading branch information
tensorflower-gardener committed Jun 24, 2019
2 parents 6f3983a + a594f05 commit 604e4d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testing/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ call_with_log_folding install_python_packages
# Get a shard of tests.
shard_tests=$(bazel query 'tests(//tensorflow_probability/...)' |
awk -v n=${NUM_SHARDS} -v s=${SHARD} 'NR%n == s' )
MAYBE_FORCE_PY2_FLAG=""
if [[ $(python -V 2>&1) =~ Python\ 2.* ]]; then
MAYBE_FORCE_PY2_FLAG="--noincompatible_py3_is_default"
fi

# Run tests. Notes on less obvious options:
# --notest_keep_going -- stop running tests as soon as anything fails. This is
Expand All @@ -93,4 +97,5 @@ echo "${shard_tests}" \
--test_timeout 300,450,1200,3600 \
--action_env=PATH \
--action_env=LD_LIBRARY_PATH \
--test_output=errors
--test_output=errors \
${MAYBE_FORCE_PY2_FLAG}

0 comments on commit 604e4d9

Please sign in to comment.