Detect the Chinese finish screen by its title in the harness
This commit is contained in:
1 parent
db8615e5ff
commit
0d8d95a340
1 file changed
+2
-1
@@ -828,7 +828,8 @@ wait_for_install() {
|
||||
while true; do
|
||||
text=$(ocr_screen)
|
||||
|
||||
if grep -qi "$(region_text "Reboot Now" "立即重启")" <<<"$text"; then
|
||||
# OCR cannot read the Chinese reboot button, so China matches the title above it.
|
||||
if grep -qi "$(region_text "Reboot Now" "安装完成")" <<<"$text"; then
|
||||
log "Install finished. Confirming the reboot prompt."
|
||||
capture_console "success-installer-15-reboot"
|
||||
press ret
|
||||
|
||||
Reference in new issue
Block a user