[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1 2/2] automation: edit expect script to separate error message lines


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: <victorm.lira@xxxxxxx>
  • Date: Tue, 2 Sep 2025 11:52:35 -0700
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=m6yCb7W2Cm2FwrxRUKS4GH+23hZoJ5wJ30wTXxrEdLA=; b=ict2SfU6Le/Ow0d2Mc9Z/gI3vCKcapBXSDZtHa1iOpZaZd6tmZIjl2kQBbiJI013ax2f/OtMmvIRndAvLbryVBt7OpXtK6TDwy475q8KsN4x+Sa5hR8IZlWcjtUMbA5MGSfJHTq9sbMp/KNK6FZn8F4c/JA6u84bIYdikN1/MIxaVx3B/p+QKOAzy1CuBtX46Gdbrxzeal0k4iBQxWISwPJimIHcfY3o39AnzRKCDvADec6MhQfzp3YgJZV5x/hK88GnbemBApoRA17mggnO9t5IV6NqArh8XzzlQuBxJ3Zvg6yrzffJnRQXF+S97n/+pshjU6qrseScDQXv9nLI3A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=br0eaAFscp7noKkmjN0mjv3Bc/BGcmgsKo9+eEi8GqP29uf0Qe6hzLaSU2sePR6u7zGFHP1P23ilXbaGppu70+LCMpkLsDBRWIH4u9R5eM1x3bkkLkynLWAOSX5Lm4SxxV1M2H1sMOJ7PQQsuYTj47b6vZLp0ky/686mNWJinGGPhIHAiAf0gVk80WI1Fr0B1RY3EMa3l/p7AgFnxsCcpKXh2x1ZXFwft6205TMeY3KNE9hRrINoEeig6ePGqp0RbGf2fJgUGYQ9Uh05eh/I1YLaGGcHbcPEghuk2r8QvohJFEEF2997GRmz/0pokbma+OzjD3K/SrzQws4Y95Exxw==
  • Cc: Victor Lira <victorm.lira@xxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Tue, 02 Sep 2025 18:53:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

From: Victor Lira <victorm.lira@xxxxxxx>

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.lira@xxxxxxx>
---
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 <cardoe@xxxxxxxxxx>
Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
---
 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



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.