mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-16 08:26:16 +00:00
tests: k8s: Rotate & cleanup journal for every run
This will help to avoid huge logs, and allow us to debug issues in a better way. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
5ec11afc21
commit
aef7da7bc9
@ -265,6 +265,17 @@ function uninstall_kbs_client() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function run_tests() {
|
function run_tests() {
|
||||||
|
if [ "${K8S_TEST_HOST_TYPE}" = "baremetal" ]; then
|
||||||
|
# Baremetal self-hosted runners end up accumulating way too much log
|
||||||
|
# and when those get displayed it's very hard to understand what's
|
||||||
|
# part of the current run and what's something from the past coming
|
||||||
|
# to haunt us.
|
||||||
|
#
|
||||||
|
# With this in mind, let's ensure we do rotate the logs on every single
|
||||||
|
# run of the tests, as its first step.
|
||||||
|
sudo journalctl --vacuum-time 1s --rotate
|
||||||
|
fi
|
||||||
|
|
||||||
ensure_yq
|
ensure_yq
|
||||||
platform="${1:-}"
|
platform="${1:-}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user