Revert "Pytest: run tests in random order" (#30469)

Revert "Pytest: run tests in random order (#30134)"

This reverts commit a5d99e0ebb.
This commit is contained in:
Justin Newberry
2023-11-15 10:41:11 -08:00
committed by GitHub
parent a5d99e0ebb
commit ba3067a560
3 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--ignore=openpilot/ --ignore=cereal/ --ignore=opendbc/ --ignore=panda/ --ignore=rednose_repo/ --ignore=tinygrad_repo/ -Werror --strict-config --strict-markers --durations=10 -n auto --dist=loadgroup --random-order"
addopts = "--ignore=openpilot/ --ignore=cereal/ --ignore=opendbc/ --ignore=panda/ --ignore=rednose_repo/ --ignore=tinygrad_repo/ -Werror --strict-config --strict-markers --durations=10 -n auto --dist=loadgroup"
cpp_files = "test_*"
python_files = "test_*.py"
#timeout = "30" # you get this long by default
+2 -2
View File
@@ -34,8 +34,6 @@ class TestAthenadMethods(unittest.TestCase):
athenad.LOCAL_PORT_WHITELIST = {cls.SOCKET_PORT}
def setUp(self):
dispatcher["listUploadQueue"]() # ensure queue is empty at start
MockParams.restore_defaults()
athenad.upload_queue = queue.Queue()
athenad.cur_upload_items.clear()
@@ -48,6 +46,8 @@ class TestAthenadMethods(unittest.TestCase):
else:
os.unlink(p)
dispatcher["listUploadQueue"]() # ensure queue is empty at start
# *** test helpers ***
@staticmethod
@@ -1,7 +1,5 @@
#!/usr/bin/env python3
import copy
import unittest
from unittest import mock
from cereal import car, log
from openpilot.common.realtime import DT_CTRL
@@ -19,7 +17,6 @@ ALL_STATES = tuple(State.schema.enumerants.values())
# The event types checked in DISABLED section of state machine
ENABLE_EVENT_TYPES = (ET.ENABLE, ET.PRE_ENABLE, ET.OVERRIDE_LATERAL, ET.OVERRIDE_LONGITUDINAL)
EVENTS = copy.copy(EVENTS)
def make_event(event_types):
event = {}
@@ -30,7 +27,6 @@ def make_event(event_types):
return 0
@mock.patch("openpilot.selfdrive.controls.lib.events.EVENTS", EVENTS)
class TestStateMachine(unittest.TestCase):
def setUp(self):