def pytest_report_teststatus(report):
    """Adapted from https://pytest.org/latest/_modules/_pytest/skipping.html
    """
    if report.outcome == "rerun":
        return "rerun", "R", ("RERUN", {"yellow": True})