Skip to contentSkip to conversation

automation: add default QEMU_TIMEOUT value if not already set

PATCH In review Stefano Stabellini 2 participants 2 messages Aug 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 automation/scripts/qemu-key.exp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
automation/scripts/qemu-key.exp +5 -1
index 35eb903a31..787f1f08cb 100755
@@ -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)
 
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Stefano Stabellini

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.

---
 automation/scripts/qemu-key.exp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
automation/scripts/qemu-key.exp +0 -0
index 35eb903a31..787f1f08cb 100755
@@ -1,6 +1,10 @@
 #!/usr/bin/expect -f

automation/scripts/qemu-key.exp line 10

Quoted 10 lines
automation/scripts/qemu-key.exp +5 -1
 
-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)
 

~Michal