test/vhost: Remove the repetitive work about kill the vm
When the ((timeo-=1)) value equal to zero, it will cause the trap in main script to start "error_exit" function which already does kill the vm. Change-Id: I30fb7dfa0c3b1a5faa6a88e9743164137b376bef Signed-off-by: Chen Wang <chenx.wang@intel.com> Reviewed-on: https://review.gerrithub.io/386208 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
3b1fb32f9c
commit
93848f4114
@ -359,11 +359,6 @@ function vm_shutdown_all()
|
|||||||
((timeo-=1))
|
((timeo-=1))
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "ERROR: VMs were NOT shutdown properly - sending SIGKILL"
|
|
||||||
for vm in $VM_BASE_DIR/[0-9]*; do
|
|
||||||
/bin/kill -KILL "$(cat $vm/qemu.pid)"
|
|
||||||
done
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user