MCPcopy
hub / github.com/commaai/openpilot / test_update_loop

Method test_update_loop

selfdrive/test/test_updated.py:215–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 # Let the updater run for 10 cycles, and write an update every cycle
214 @pytest.mark.skip("need to make this faster")
215 def test_update_loop(self):
216 self._start_updater()
217
218 # run for a cycle with no update
219 self._wait_for_update(clear_param=True)
220 for _ in range(10):
221 time.sleep(0.5)
222 self._make_commit()
223 self._wait_for_update(timeout=90, clear_param=True)
224 self._check_update_state(True)
225
226 # Test overlay re-creation after tracking a new file in basedir's git
227 def test_overlay_reinit(self):

Callers

nothing calls this directly

Calls 5

_start_updaterMethod · 0.95
_wait_for_updateMethod · 0.95
_make_commitMethod · 0.95
_check_update_stateMethod · 0.95
sleepMethod · 0.80

Tested by

no test coverage detected