remove excess wait state and clarify wait text

This commit is contained in:
bunnie 2022-04-20 16:59:19 +08:00
parent 15105cd0b2
commit a31030bf90
3 changed files with 12 additions and 15 deletions

View file

@ -15,28 +15,28 @@ if ($decision -eq 0) {
}
python usb_update.py --disable-boot
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest-ci/xous-$LOCALE.img -OutFile xous.img
python usb_update.py -k xous.img
Remove-Item xous.img
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest-ci/ec_fw.bin -OutFile ec_fw.bin
python usb_update.py -e ec_fw.bin
Remove-Item ec_fw.bin
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest-ci/wf200_fw.bin -OutFile wf200_fw.bin
python usb_update.py -w wf200_fw.bin
Remove-Item wf200_fw.bin
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest-ci/loader.bin -OutFile loader.bin

View file

@ -32,31 +32,28 @@ else
fi
./usb_update.py --disable-boot
echo "waiting for device to reboot"
sleep 5
echo "waiting for device to reboot"
echo "waiting for device to reconnect"
sleep 5
wget https://ci.betrusted.io/$REVISION/xous$LOCALE.img -O /tmp/xous.img
./usb_update.py -k /tmp/xous.img
rm /tmp/xous.img
echo "waiting for device to reboot"
echo "waiting for device to reconnect"
sleep 5
wget https://ci.betrusted.io/$REVISION/ec_fw.bin -O /tmp/ec_fw.bin
./usb_update.py -e /tmp/ec_fw.bin
rm /tmp/ec_fw.bin
echo "waiting for device to reboot"
echo "waiting for device to reconnect"
sleep 5
wget https://ci.betrusted.io/$REVISION/wf200_fw.bin -O /tmp/wf200_fw.bin
./usb_update.py -w /tmp/wf200_fw.bin
rm /tmp/wf200_fw.bin
echo "waiting for device to reboot"
echo "waiting for device to reconnect"
sleep 5
wget https://ci.betrusted.io/$REVISION/loader.bin -O /tmp/loader.bin

View file

@ -15,28 +15,28 @@ if ($decision -eq 0) {
}
python usb_update.py --disable-boot
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/releases/latest/xous-$LOCALE.img -OutFile xous.img
python usb_update.py -k xous.img
Remove-Item xous.img
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/releases/latest/ec_fw.bin -OutFile ec_fw.bin
python usb_update.py -e ec_fw.bin
Remove-Item ec_fw.bin
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/releases/latest/wf200_fw.bin -OutFile wf200_fw.bin
python usb_update.py -w wf200_fw.bin
Remove-Item wf200_fw.bin
Write-Output "waiting for device to reboot"
Write-Output "waiting for device to reconnect"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/releases/latest/loader.bin -OutFile loader.bin