Test Automation change only: USB fix to RPi setup again again.
Forgot to separately power-down the JLINK disk that Segger JLink debuggers create in the previous change.
@@ -416,9 +416,10 @@ def buildAndTestPipeline(instance_str, json_entry, filter) {
sh(script: "echo 0 > sudo tee /sys/bus/usb/devices/1-1.3/authorized")
sh(script: "echo 0 > sudo tee /sys/bus/usb/devices/1-1.4/authorized")
// Set return status to true so that it doesn't cause an exception if this instance doesn't
- // happen to have a C030 board or an STM32F407 Discovery board attached
+ // happen to have a C030 board or an STM32F407 Discovery board or a Segger J-Link attached
sh(script: "sudo udisksctl power-off --block-device /dev/disk/by-label/UBLOX-R412M", returnStatus : true)
sh(script: "sudo udisksctl power-off --block-device /dev/disk/by-label/DIS_F407VG", returnStatus : true)
+ sh(script: "sudo udisksctl power-off --block-device /dev/disk/by-label/JLINK", returnStatus : true)
sh(script: "uhubctl -a 0 -l 1-1 -r 100")
}
println "DUT attached to instance_${instance_str} (${env.NODE_NAME}) is powered down."
