Skip to content

Commit b343ac6

Browse files
committed
reset usb before running test
1 parent 19d7d62 commit b343ac6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/build_esp.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ jobs:
9292
name: ${{ matrix.board }}
9393
path: cmake-build/cmake-build-${{ matrix.board }}
9494

95-
- name: Test on actual hardware
96-
run: |
97-
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
98-
9995
- name: Reset USB bus
10096
run: |
10197
for port in $(lspci | grep USB | cut -d' ' -f1); do
10298
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
10399
sleep 1;
104100
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
101+
sleep 1;
105102
done
103+
104+
- name: Test on actual hardware
105+
run: |
106+
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json

.github/workflows/cmake_arm.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ jobs:
144144
name: ${{ matrix.board }}
145145
path: cmake-build/cmake-build-${{ matrix.board }}
146146

147-
- name: Test on actual hardware
148-
run: |
149-
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
150-
151147
- name: Reset USB bus
152148
run: |
153149
for port in $(lspci | grep USB | cut -d' ' -f1); do
154150
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
155151
sleep 1;
156152
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
153+
sleep 1;
157154
done
155+
156+
- name: Test on actual hardware
157+
run: |
158+
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json

0 commit comments

Comments
 (0)