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: #7869

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
(cherry picked from commit adfea55b8f)
This commit is contained in:
David Esparza 2023-09-07 15:41:59 -06:00 committed by Fabiano Fidêncio
parent 89345b6731
commit 053308eefc

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."