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

[PATCH] automation: add default QEMU_TIMEOUT value if not already set


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Date: Thu, 15 Aug 2024 18:00:34 -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=gkbsKAQ/YfMSYzGIs1nV6lSw/u0yO2EDs5ryQTixoJw=; b=GN0LSkNwtOsQRPa5RvOnKwqNvGdiiUFVmAqaeQYHvlm8C1e3ILJR+M7Dh4wtGlFB50gJoiDv21yGGb+oYujm6FpPQaWfg9AGPRBRLWo5aiNHLRlt+a9dXqWfiwOksbhfHTJQMJQddA8unbY6QOMa/uYQJuxcuAzuEejqRgSYjZ6/jas4ElFwnisVe4Q0FOqAA+b8rgKWiZ95jfWk6S/oAl7NpWam/AyUE+PmGe7FKr/odUKfKrA+Im2tVDNyWPAOi4LMqf0wPECOjdDCaeDRsvnWS7yXEVkcEGRlzqrsJWN49V2p5lTGTNzhwMyLZJJMTWUZTmqj0sidLdarw8UHMA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pQ7MGXkFj7fTIW7P+R/QaAh46jNPY98lwH9mT06oSsUNYWe8JkAiZkwEpzejoV4DooZk1T4KbkXXEAxYTjGXfeSSpF/KGQ/H4wM8kamL3xTb69NNskcazqmmUC2pJsF/24rWGaO46e3+qJlJqGoCV8Af93Gxbry5D/kdaI50tOLXPQd7SAzGH7AxNVdbtTEtqyvXnxCqz/b/2AVg70O8rm7kgh4MPJS60MPB+PgXvBeNbHCT2oRg2MJgHvb/lk8yPqQik5s9hFX3cNFtFgEYtZ8ptWYQRwIcCXteOe0X4o50+JfM6jeZss/bC1iiuGUwxVB7EGLMJcOx03h0eGBPpQ==
  • Cc: <sstabellini@xxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Delivery-date: Fri, 16 Aug 2024 01:01:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The expectation is that QEMU_TIMEOUT should be set as a Gitlab CI/CD
variable but if not we should be able to run the pipeline anyway.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
---
 automation/scripts/qemu-key.exp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/automation/scripts/qemu-key.exp b/automation/scripts/qemu-key.exp
index 35eb903a31..787f1f08cb 100755
--- a/automation/scripts/qemu-key.exp
+++ b/automation/scripts/qemu-key.exp
@@ -1,6 +1,10 @@
 #!/usr/bin/expect -f
 
-set timeout $env(QEMU_TIMEOUT)
+if {[info exists env(QEMU_TIMEOUT)]} {
+    set timeout $env(QEMU_TIMEOUT)
+} else {
+    set timeout 1500
+}
 
 log_file -a $env(QEMU_LOG)
 
-- 
2.25.1




 


Rackspace

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