From: Stefano Stabellini Date: Fri, 16 Aug 2024 01:00:34 +0000 (-0700) Subject: automation: add default QEMU_TIMEOUT value if not already set X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1e2a5f991f86979b89aa9a60ca3ba8106ee7d987;p=people%2Froyger%2Fxen.git automation: add default QEMU_TIMEOUT value if not already set 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 Reviewed-by: Michal Orzel --- 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)