mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
TEST_TIMEOUT is set as a CI/CD project variable, as it should be, to match the capability and speed of the testing infrastructure. As it turns out, TEST_TIMEOUT defined in test.yaml cannot override TEST_TIMEOUT defined as CI/CD project variable. As a consequence, today the TEST_TIMEOUT setting in test.yaml for the Xilinx jobs is ignored. Instead, rename TEST_TIMEOUT to TEST_TIMEOUT_OVERRIDE in test.yaml and check for TEST_TIMEOUT_OVERRIDE first in console.exp. Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com> Reviewed-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
52 lines
860 B
Plaintext
Executable File
52 lines
860 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
|
|
if {[info exists env(TEST_TIMEOUT_OVERRIDE)]} {
|
|
set timeout $env(TEST_TIMEOUT_OVERRIDE)
|
|
} elseif {[info exists env(TEST_TIMEOUT)]} {
|
|
set timeout $env(TEST_TIMEOUT)
|
|
} else {
|
|
set timeout 1500
|
|
}
|
|
|
|
log_file -a $env(TEST_LOG)
|
|
|
|
match_max 10000
|
|
|
|
eval spawn $env(TEST_CMD)
|
|
|
|
expect_after {
|
|
-re "(.*)\r" {
|
|
exp_continue -continue_timer
|
|
}
|
|
timeout {send_error "ERROR-Timeout!\n"; exit 1}
|
|
eof {send_error "ERROR-EOF!\n"; exit 1}
|
|
}
|
|
|
|
if {[info exists env(UBOOT_CMD)]} {
|
|
expect "=>"
|
|
|
|
send "$env(UBOOT_CMD)\r"
|
|
}
|
|
|
|
if {[info exists env(LOG_MSG)]} {
|
|
expect {
|
|
"$env(PASSED)" {
|
|
expect "$env(LOG_MSG)"
|
|
exit 0
|
|
}
|
|
"$env(LOG_MSG)" {
|
|
expect "$env(PASSED)"
|
|
exit 0
|
|
}
|
|
}
|
|
}
|
|
|
|
expect {
|
|
"$env(PASSED)" {
|
|
exit 0
|
|
}
|
|
}
|
|
|
|
expect eof
|
|
|