]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
CI: fix waiting for final test message (again)
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Sun, 13 Apr 2025 13:47:31 +0000 (15:47 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Apr 2025 11:16:43 +0000 (12:16 +0100)
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>
automation/scripts/console.exp

index bdb1dd9820039e3a614252b8e1ac6e5380727c22..fc80513dfb3545d96b664285d7aaedf134443573 100755 (executable)
@@ -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
         }
     }