1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-04-29 04:04:45 +00:00

metrics: fix FIO test initialization

This PR changes the order in which the FIO test first
cleans the environment and then checks if the environment
is indeed clean.

Fixes: 

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
This commit is contained in:
David Esparza 2023-09-07 15:41:59 -06:00
parent 34f580901f
commit adfea55b8f
No known key found for this signature in database
GPG Key ID: EABE0B1A98CC3B7A

View File

@ -15,8 +15,8 @@ TEST_NAME="${TEST_NAME:-fio}"
function main() {
cmds=("bc" "jq")
check_cmds "${cmds[@]}"
check_processes
init_env
check_processes
pushd "${FIO_PATH}"
[ -z "${KATA_HYPERVISOR}" ] && die "Hypervisor ID is missing."