The previous attempt has correct diagnosis, but added -notransfer flag
in a wrong place - it should be used in the first (outer) match out of
two, not the second (inner) one.
Fixes: 1e12cbd6af2c ("CI: fix waiting for final test message")
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
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
}
}