Skip to content

Commit 1e2a5f9

Browse files
committed
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 <[email protected]> Reviewed-by: Michal Orzel <[email protected]>
1 parent cbe73b8 commit 1e2a5f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

automation/scripts/qemu-key.exp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/expect -f
22

3-
set timeout $env(QEMU_TIMEOUT)
3+
if {[info exists env(QEMU_TIMEOUT)]} {
4+
set timeout $env(QEMU_TIMEOUT)
5+
} else {
6+
set timeout 1500
7+
}
48

59
log_file -a $env(QEMU_LOG)
610

0 commit comments

Comments
 (0)