mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +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:
		| @@ -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." | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user