mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
wait for enumeration before test
This commit is contained in:
parent
95c0262cd6
commit
f5f2433c5a
8
.github/workflows/test_hardware.yml
vendored
8
.github/workflows/test_hardware.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user