Attempted to improve TravisCI online tests
This commit is contained in:
@@ -2,7 +2,17 @@
|
||||
|
||||
set -ex
|
||||
|
||||
if ! python -m pytest --tb=no --color=yes; then # --tb=no -> Don't print stack traces
|
||||
echo 'Some tests failed. Rerunning them, since they can be kinda flaky.'
|
||||
if ! python -m pytest --color=yes; then
|
||||
echo << EOF
|
||||
-----------------------------------------------------------------
|
||||
-----------------------------------------------------------------
|
||||
-----------------------------------------------------------------
|
||||
|
||||
Some tests failed! Rerunning them, since they can be kinda flaky.
|
||||
|
||||
-----------------------------------------------------------------
|
||||
-----------------------------------------------------------------
|
||||
-----------------------------------------------------------------
|
||||
EOF
|
||||
python -m pytest --last-failed --color=yes
|
||||
fi
|
||||
|
Reference in New Issue
Block a user