From: Victor Lira <victorm.l...@amd.com>

The errors can happen in the middle of a console line which causes the message
to appear at the end of the current line.

Prepend a newline to clearly separate the error line.

Signed-off-by: Victor Lira <victorm.l...@amd.com>
---
example of the problem:
 - https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/11220478458
 - line 652
---
pipeline:
 - https://gitlab.com/xen-project/people/sstabellini/xen/-/pipelines/2017775449
---
Cc: Doug Goldstein <car...@cardoe.com>
Cc: Stefano Stabellini <sstabell...@kernel.org>
Cc: xen-devel@lists.xenproject.org
---
 automation/scripts/console.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/automation/scripts/console.exp b/automation/scripts/console.exp
index fc80513dfb..e27886bbef 100755
--- a/automation/scripts/console.exp
+++ b/automation/scripts/console.exp
@@ -35,8 +35,8 @@ expect_after {
     -re "(.*)\r" {
         exp_continue -continue_timer
     }
-    timeout {send_error "ERROR-Timeout!\n"; exit 1}
-    eof {send_error "ERROR-EOF!\n"; exit 1}
+    timeout {send_error "\nERROR-Timeout!\n"; exit 1}
+    eof {send_error "\nERROR-EOF!\n"; exit 1}
 }

 if {[info exists env(UBOOT_CMD)]} {
--
2.50.GIT

Reply via email to