mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +00:00 
			
		
		
		
	tests: Remove unused function from scability test
This PR removes an unused function from scability test. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
		| @@ -41,7 +41,7 @@ function run() { | ||||
| 	bash "${stability_dir}/soak_parallel_rm.sh" | ||||
|  | ||||
| 	info "Running scability test using ${KATA_HYPERVISOR} hypervisor" | ||||
| 	bash "${stability_dir}/scability_test.sh" 10 10 | ||||
| 	bash "${stability_dir}/scability_test.sh" 15 60 | ||||
| } | ||||
|  | ||||
| function main() { | ||||
|   | ||||
| @@ -39,8 +39,7 @@ function main() { | ||||
| 	local containers=() | ||||
| 	local not_started_count="${NUM_CONTAINERS}" | ||||
|  | ||||
| 	init_env | ||||
| 	check_cmds "${cmds[@]}" | ||||
| 	clean_env_ctr | ||||
| 	sudo -E ctr i pull "${IMAGE}" | ||||
|  | ||||
| 	info "Creating ${NUM_CONTAINERS} containers" | ||||
| @@ -53,16 +52,10 @@ function main() { | ||||
| 	done | ||||
|  | ||||
| 	# Check that the requested number of containers are running | ||||
| 	check_containers_are_up & pid=$! | ||||
| 	(sleep "${TIMEOUT_LAUNCH}" && kill -HUP "${pid}") 2>/dev/null & pid_tout=$! | ||||
| 	check_containers_are_up "${NUM_CONTAINERS}" | ||||
|  | ||||
| 	if wait "${pid}" 2>/dev/null; then | ||||
| 		pkill -HUP -P "${pid_tout}" | ||||
| 		wait "${pid_tout}" | ||||
| 	else | ||||
| 		warn "Time out exceeded" | ||||
| 		return 1 | ||||
| 	fi | ||||
| 	# Check that the requested number of containers are running | ||||
| 	check_containers_are_running "${NUM_CONTAINERS}" | ||||
|  | ||||
| 	clean_env_ctr | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user