#!/bin/bash set -ex 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