diff --git a/automation/scripts/console.exp b/automation/scripts/console.exp index bdb1dd9820..fc80513dfb 100755 --- a/automation/scripts/console.exp +++ b/automation/scripts/console.exp @@ -60,12 +60,12 @@ if {[info exists env(WAKEUP_CMD)]} { if {[info exists env(LOG_MSG)]} { expect { - -re "$env(PASSED)" { - expect -notransfer -re "$env(LOG_MSG)" + -notransfer -re "$env(PASSED)" { + expect -re "$env(LOG_MSG)" exit 0 } - -re "$env(LOG_MSG)" { - expect -notransfer -re "$env(PASSED)" + -notransfer -re "$env(LOG_MSG)" { + expect -re "$env(PASSED)" exit 0 } }