diff options
| author | hathach <[email protected]> | 2022-07-28 11:10:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-07-28 11:10:54 +0700 |
| commit | e01b437af5581794618ff031b3f8d6614bb46cec (patch) | |
| tree | 082eda14938b8922c0f4741b83e2f3ba1ef32d90 /.github/workflows | |
| parent | 2d5be437472d2da573bae0c1e64ee8e017391dfe (diff) | |
more hw test
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test_hardware.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/test_hardware.yml b/.github/workflows/test_hardware.yml index 77b95bfee..50353474b 100644 --- a/.github/workflows/test_hardware.yml +++ b/.github/workflows/test_hardware.yml @@ -33,15 +33,16 @@ jobs: touch flash.sh chmod +x flash.sh echo > flash.sh 'openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1.elf reset exit"' - echo >> flash.sh '"Waiting for enumeration (500 ms for reset, 5s for enumeration)"' + echo >> flash.sh 'echo "Waiting for 0.5s for reset"' echo >> flash.sh 'sleep 0.5' echo >> flash.sh 'SECONDS=0' - echo >> flash.sh 'while (! lsusb | grep "cafe:") && [ $SECONDS -le 5 ] ; do : ; done' + echo >> flash.sh 'lsusb | grep "cafe:"' - name: Test cdc_dual_ports #working-directory: ${{github.workspace}} run: | ./flash.sh cdc_dual_ports + while ! ([ -e /dev/ttyACM1 ] && [ -e /dev/ttyACM2 ]) && [$SECONDS -le 5]; do :; done test -e /dev/ttyACM1 && echo "ttyACM1 exists" test -e /dev/ttyACM2 && echo "ttyACM2 exists" @@ -49,6 +50,8 @@ jobs: #working-directory: ${{github.workspace}} run: | ./flash.sh cdc_msc + while ! ([ -e /dev/ttyACM1 ] && [ -e /dev/sda ]) && [$SECONDS -le 5]; do :; done test -e /dev/ttyACM1 && echo "ttyACM1 exists" + test -e /dev/sda && echo "sda exists" test -f /media/pi/TinyUSB\ MSC/README.TXT && echo "MSC README.TXT exist" cat /media/pi/TinyUSB\ MSC/README.TXT |
