diff options
| author | hathach <[email protected]> | 2022-07-27 11:56:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-07-27 12:08:50 +0700 |
| commit | f5f2433c5afef3785caeb5251d4cac75e62b77f0 (patch) | |
| tree | 70b803b5024413ec26da54d1435c97d3241150ee /.github | |
| parent | 95c0262cd68edbafeb5b8154cf7693d63c26c07f (diff) | |
wait for enumeration before test
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/test_hardware.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/test_hardware.yml b/.github/workflows/test_hardware.yml index 93440754e..30f9e53e8 100644 --- a/.github/workflows/test_hardware.yml +++ b/.github/workflows/test_hardware.yml @@ -32,14 +32,20 @@ jobs: example: cdc_dual_ports run: | openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program ${{ env.example }}.elf verify reset exit" + echo "Waiting for enumeration" + while ! lsusb | grep "cafe:" ; do : ; done + # Test test -e /dev/ttyACM1 test -e /dev/ttyACM2 - name: Test cdc_msc env: - example: cdc_dual_ports + example: cdc_msc run: | openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program ${{ env.example }}.elf verify reset exit" + echo "Waiting for enumeration" + while ! lsusb | grep "cafe:" ; do : ; done + # Test test -e /dev/ttyACM1 test -e /media/pi/TinyUSB\ MSC/README.TXT cat /media/pi/TinyUSB\ MSC/README.TXT |
