Run a custom script before running HIL tests (#2580)
* Do not cycle USB power * Call a script before running tests
This commit is contained in:
parent
973671c3cb
commit
f81b5f6c7f
32
.github/workflows/hil.yml
vendored
32
.github/workflows/hil.yml
vendored
@ -156,32 +156,25 @@ jobs:
|
|||||||
- soc: esp32c2
|
- soc: esp32c2
|
||||||
runner: esp32c2-jtag
|
runner: esp32c2-jtag
|
||||||
host: aarch64
|
host: aarch64
|
||||||
hubs: "1 3"
|
|
||||||
- soc: esp32c3
|
- soc: esp32c3
|
||||||
runner: esp32c3-usb
|
runner: esp32c3-usb
|
||||||
host: armv7
|
host: armv7
|
||||||
hubs: "1-1"
|
|
||||||
- soc: esp32c6
|
- soc: esp32c6
|
||||||
runner: esp32c6-usb
|
runner: esp32c6-usb
|
||||||
host: armv7
|
host: armv7
|
||||||
hubs: "1-1"
|
|
||||||
- soc: esp32h2
|
- soc: esp32h2
|
||||||
runner: esp32h2-usb
|
runner: esp32h2-usb
|
||||||
host: armv7
|
host: armv7
|
||||||
hubs: "1-1"
|
|
||||||
# Xtensa devices:
|
# Xtensa devices:
|
||||||
- soc: esp32
|
- soc: esp32
|
||||||
runner: esp32-jtag
|
runner: esp32-jtag
|
||||||
host: aarch64
|
host: aarch64
|
||||||
hubs: "1 3"
|
|
||||||
- soc: esp32s2
|
- soc: esp32s2
|
||||||
runner: esp32s2-jtag
|
runner: esp32s2-jtag
|
||||||
host: armv7
|
host: armv7
|
||||||
hubs: "1-1"
|
|
||||||
- soc: esp32s3
|
- soc: esp32s3
|
||||||
runner: esp32s3-usb
|
runner: esp32s3-usb
|
||||||
host: armv7
|
host: armv7
|
||||||
hubs: "1-1"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@ -192,32 +185,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: xtask-${{ matrix.target.host }}
|
name: xtask-${{ matrix.target.host }}
|
||||||
|
|
||||||
- name: Cycle USB ports
|
|
||||||
run: |
|
|
||||||
export PATH=$PATH:/home/espressif/.cargo/bin
|
|
||||||
for i in {1..10}; do
|
|
||||||
# Disable all used hubs
|
|
||||||
for hub in ${{ matrix.target.hubs }}; do
|
|
||||||
sudo uhubctl -a off -l $hub
|
|
||||||
done
|
|
||||||
|
|
||||||
sleep 5
|
|
||||||
|
|
||||||
# Enable all used hubs
|
|
||||||
for hub in ${{ matrix.target.hubs }}; do
|
|
||||||
sudo uhubctl -a on -l $hub
|
|
||||||
done
|
|
||||||
|
|
||||||
sleep 0.5
|
|
||||||
|
|
||||||
if probe-rs list | grep -q "\[0\]:"; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
id: run-tests
|
id: run-tests
|
||||||
run: |
|
run: |
|
||||||
|
[ -f ~/setup.sh ] && source ~/setup.sh
|
||||||
|
|
||||||
export PATH=$PATH:/home/espressif/.cargo/bin
|
export PATH=$PATH:/home/espressif/.cargo/bin
|
||||||
chmod +x xtask
|
chmod +x xtask
|
||||||
./xtask run-elfs ${{ matrix.target.soc }} tests-${{ matrix.target.soc }}
|
./xtask run-elfs ${{ matrix.target.soc }} tests-${{ matrix.target.soc }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user