Skip to content

Commit

Permalink
HITL tests: enable flashing tests on tres
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jun 12, 2023
1 parent 4850b13 commit adc0c12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pipeline {
phone_steps("panda-tres", [
["build", "scons -j4"],
["flash", "cd tests/ && ./ci_reset_internal_hw.py"],
["test", "cd tests/hitl && HW_TYPES=9 pytest --durations=0 2*.py [5-9]*.py"],
["test", "cd tests/hitl && HW_TYPES=9 pytest --durations=0 [0-2]*.py [5-9]*.py"],
])
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/hitl/1_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_a_known_bootstub(p):
check_signature(p)
assert not p.bootstub

@pytest.mark.execution_timeout(15)
@pytest.mark.execution_timeout(25)
def test_b_recover(p):
assert p.recover(timeout=30)
check_signature(p)
Expand Down
2 changes: 2 additions & 0 deletions tests/hitl/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def func_fixture_panda(request, module_panda):
if p.bootstub:
p.reset()

assert not p.bootstub

# TODO: would be nice to make these common checks in the teardown
# show up as failed tests instead of "errors"

Expand Down
Binary file modified tests/hitl/known_bootstub/bootstub.panda_h7.bin
100644 → 100755
Binary file not shown.

2 comments on commit adc0c12

@tech-jun-jones
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./flash.sh

@tech-jun-jones
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo tee /etc/udev/rules.d/12-panda_jungle.rules <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddcf", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddef", MODE="0666"
EOF
sudo udevadm control --reload-rules && sudo udevadm triggersudo tee /etc/udev/rules.d/11-panda.rules <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddcc", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddee", MODE="0666"
EOF
sudo udevadm control --reload-rules && sudo udevadm trigger>>> panda.set_safety_mode(Panda.SAFETY_ALLOUTPUT)

panda.can_send(0x1aa, b'message', 0)>>> from panda import Panda
panda = Panda()
panda.can_recv()

Please sign in to comment.