]> xenbits.xensource.com Git - xen.git/commitdiff
automation: add default QEMU_TIMEOUT value if not already set
authorStefano Stabellini <stefano.stabellini@amd.com>
Fri, 16 Aug 2024 01:00:34 +0000 (18:00 -0700)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Nov 2024 18:16:35 +0000 (18:16 +0000)
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@amd.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
(cherry picked from commit 1e2a5f991f86979b89aa9a60ca3ba8106ee7d987)

automation/scripts/qemu-key.exp

index 35eb903a310c774b84549b59fd7e4bfaebf82eee..787f1f08cb96073bbb73faf0f1eff783ef1e7ebf 100755 (executable)
@@ -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)