mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 01:20:19 +00:00
reset usb before running test
This commit is contained in:
parent
19d7d62e80
commit
b343ac6d0f
9
.github/workflows/build_esp.yml
vendored
9
.github/workflows/build_esp.yml
vendored
@ -92,14 +92,15 @@ jobs:
|
|||||||
name: ${{ matrix.board }}
|
name: ${{ matrix.board }}
|
||||||
path: cmake-build/cmake-build-${{ matrix.board }}
|
path: cmake-build/cmake-build-${{ matrix.board }}
|
||||||
|
|
||||||
- name: Test on actual hardware
|
|
||||||
run: |
|
|
||||||
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
|
||||||
|
|
||||||
- name: Reset USB bus
|
- name: Reset USB bus
|
||||||
run: |
|
run: |
|
||||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||||
sleep 1;
|
sleep 1;
|
||||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||||
|
sleep 1;
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Test on actual hardware
|
||||||
|
run: |
|
||||||
|
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
||||||
|
9
.github/workflows/cmake_arm.yml
vendored
9
.github/workflows/cmake_arm.yml
vendored
@ -144,14 +144,15 @@ jobs:
|
|||||||
name: ${{ matrix.board }}
|
name: ${{ matrix.board }}
|
||||||
path: cmake-build/cmake-build-${{ matrix.board }}
|
path: cmake-build/cmake-build-${{ matrix.board }}
|
||||||
|
|
||||||
- name: Test on actual hardware
|
|
||||||
run: |
|
|
||||||
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
|
||||||
|
|
||||||
- name: Reset USB bus
|
- name: Reset USB bus
|
||||||
run: |
|
run: |
|
||||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||||
sleep 1;
|
sleep 1;
|
||||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||||
|
sleep 1;
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Test on actual hardware
|
||||||
|
run: |
|
||||||
|
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user