Automatically retry failed tests

This commit is contained in:
Michael Droettboom 2018-08-06 14:29:19 -04:00
parent c920def200
commit 6c8c599dce
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ jobs:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --set gcc /usr/bin/gcc-8
sudo pip install pytest-xdist pytest-instafail selenium PyYAML
sudo pip install pytest-xdist pytest-instafail selenium PyYAML pytest-rerunfailures
# Get recent version of Firefox and geckodriver
wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-nightly-latest-ssl\&os\=linux64\&lang\=en-US

View File

@ -280,6 +280,7 @@ def test_open_url(selenium):
"pyodide.open_url('test_data.txt').read()\n") == 'HELLO\n'
@pytest.mark.flaky(reruns=2)
def test_run_core_python_test(python_test, selenium):
selenium.load_package('test')
try: