mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
* Improve panda automated testing * begin testing both white and grey panda * Improve wifi reliability * First commit for docker * Fix usb devices not showing up on reconnect * Add tests for two pandas, latency and throughput * Add Jenkinsfile * Allow flashing release on wifi * Fix Jenkins stuck in DFU mode and docker container running * Add pandaextra from xx to docker * Need more time for ST to restart, sometimes * Add xml output to tests * Try making wifi more reliable * Fix infinite loop in ping * Check connected after flash * Cleanup two panda tests * Try fixing failing test with check after udp * Try to fix with sleep * Temporarily run just 5 and 6 * Cleanup * Desperate times call for desperate measurse * BUGFIX: power saving when rx only * Fix failing when white panda is first after udp * Test both Dev and EON build * Jenkins test results for both builds * Better test case naming
16 lines
344 B
Python
16 lines
344 B
Python
import os
|
|
from panda import Panda
|
|
from helpers import panda_color_to_serial, test_white_and_grey
|
|
|
|
@test_white_and_grey
|
|
@panda_color_to_serial
|
|
def test_recover(serial=None):
|
|
p = Panda(serial=serial)
|
|
assert p.recover(timeout=30)
|
|
|
|
@test_white_and_grey
|
|
@panda_color_to_serial
|
|
def test_flash(serial=None):
|
|
p = Panda(serial=serial)
|
|
p.flash()
|