mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00:00
tests: Add more messages
Add a few more informational messages to help with debugging. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
9f2da28bb9
commit
c5e2c0fe88
@ -64,6 +64,8 @@ exit_handler()
|
|||||||
{
|
{
|
||||||
if [ "$?" -eq 0 ]
|
if [ "$?" -eq 0 ]
|
||||||
then
|
then
|
||||||
|
info "tests passed successfully - cleaning up"
|
||||||
|
|
||||||
# Rootfs and images are owned by root
|
# Rootfs and images are owned by root
|
||||||
sudo -E rm -rf "${tmp_rootfs}"
|
sudo -E rm -rf "${tmp_rootfs}"
|
||||||
sudo -E rm -rf "${images_dir}"
|
sudo -E rm -rf "${images_dir}"
|
||||||
@ -73,8 +75,9 @@ exit_handler()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The test failed so dump what we can
|
info "ERROR: test failed"
|
||||||
|
|
||||||
|
# The test failed so dump what we can
|
||||||
info "AGENT_INIT: '${AGENT_INIT}'"
|
info "AGENT_INIT: '${AGENT_INIT}'"
|
||||||
|
|
||||||
info "images:"
|
info "images:"
|
||||||
@ -428,12 +431,16 @@ test_single_distro()
|
|||||||
die "no test for distro '$distro' (try one of $distros)"
|
die "no test for distro '$distro' (try one of $distros)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
info "only running tests for distro $distro"
|
||||||
|
|
||||||
# run the test
|
# run the test
|
||||||
$defined_func
|
$defined_func
|
||||||
}
|
}
|
||||||
|
|
||||||
test_all_distros()
|
test_all_distros()
|
||||||
{
|
{
|
||||||
|
info "running tests for all distros"
|
||||||
|
|
||||||
test_distro_fedora
|
test_distro_fedora
|
||||||
test_distro_centos
|
test_distro_centos
|
||||||
test_distro_alpine
|
test_distro_alpine
|
||||||
@ -502,6 +509,10 @@ main()
|
|||||||
else
|
else
|
||||||
test_all_distros
|
test_all_distros
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# We shouldn't really need a message like this but the CI can fail in
|
||||||
|
# mysterious ways so make it clear!
|
||||||
|
info "all tests finished successfully"
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user