Commit 1bdede95 authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #106 from mdboom/retry-chrome

Automatically retry failed tests
parents 989f9675 154a65ff
......@@ -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
......
......@@ -3,6 +3,9 @@ from pathlib import Path
import time
import pytest
def test_init(selenium):
assert 'Python initialization complete' in selenium.logs
assert len(selenium.driver.window_handles) == 1
......@@ -280,6 +283,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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment