mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-01 14:38:33 +00:00
tests/agent-ctl: Add debug
The agent-ctl tests are failing in the CI, but there is no log reporting, so debugging is not possible. Add some debug to help. Assisted-by: IBM Bob Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
@@ -83,8 +83,10 @@ run_agent_ctl()
|
||||
|
||||
local server_address="--server-address ${local_agent_server_addr}"
|
||||
|
||||
info "Running agent-ctl with commands: ${cmds}"
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
eval \
|
||||
if ! eval \
|
||||
sudo \
|
||||
RUST_BACKTRACE=full \
|
||||
"${agent_ctl_path}" \
|
||||
@@ -93,6 +95,13 @@ run_agent_ctl()
|
||||
${server_address} \
|
||||
${cmds} \
|
||||
${redirect}
|
||||
then
|
||||
warn "agent-ctl command failed. Last 50 lines of agent-ctl log:"
|
||||
tail -n 50 "${ctl_log_file}" >&2 || true
|
||||
warn "Last 50 lines of agent log:"
|
||||
tail -n 50 "${agent_log_file}" >&2 || true
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
get_agent_pid()
|
||||
|
||||
Reference in New Issue
Block a user