summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-07-27 11:56:31 +0700
committerhathach <[email protected]>2022-07-27 12:08:50 +0700
commitf5f2433c5afef3785caeb5251d4cac75e62b77f0 (patch)
tree70b803b5024413ec26da54d1435c97d3241150ee /.github/workflows
parent95c0262cd68edbafeb5b8154cf7693d63c26c07f (diff)
wait for enumeration before test
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test_hardware.yml8
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