mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +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: #7869 Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
This commit is contained in:
parent
34f580901f
commit
adfea55b8f
@ -15,8 +15,8 @@ TEST_NAME="${TEST_NAME:-fio}"
|
|||||||
function main() {
|
function main() {
|
||||||
cmds=("bc" "jq")
|
cmds=("bc" "jq")
|
||||||
check_cmds "${cmds[@]}"
|
check_cmds "${cmds[@]}"
|
||||||
check_processes
|
|
||||||
init_env
|
init_env
|
||||||
|
check_processes
|
||||||
|
|
||||||
pushd "${FIO_PATH}"
|
pushd "${FIO_PATH}"
|
||||||
[ -z "${KATA_HYPERVISOR}" ] && die "Hypervisor ID is missing."
|
[ -z "${KATA_HYPERVISOR}" ] && die "Hypervisor ID is missing."
|
||||||
|
Loading…
Reference in New Issue
Block a user