metrics: Reduce repeats for boot time tests on qemu

On qemu the run seems to error after ~4-7 runs, so try
a cut down version of repetitions to see if this helps us
get results in a stable way.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2025-03-02 08:42:00 +00:00
parent 0962cd95bc
commit c69509be1c

View File

@ -54,9 +54,14 @@ function make_tarball_results() {
}
function run_test_launchtimes() {
info "Running Launch Time test using ${KATA_HYPERVISOR} hypervisor"
repetitions=20
if [[ ${KATA_HYPERVISOR} == "qemu" ]]; then
# The qemu workload seems to fail before it can run ~5-7 repetitions of the workload
repetitions=3
fi
bash tests/metrics/time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n 20
info "Running Launch Time test using ${KATA_HYPERVISOR} hypervisor"
bash tests/metrics/time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n "${repetitions}"
}
function run_test_memory_usage() {