test/nvme/hotplug: delay before running setup.sh

Make sure the guest kernel has time to enumerate the new PCI devices
before running setup.sh during insert_devices().

Change-Id: I9e1288882b59e0cf44afc0c50668302886594c23
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/365494
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Daniel Verkamp 2017-06-14 11:16:41 -07:00
parent d46f502999
commit 8025dee513

View File

@ -38,6 +38,7 @@ function insert_devices() {
monitor_cmd "device_add nvme,drive=drive1,id=nvme1,serial=nvme1"
monitor_cmd "device_add nvme,drive=drive2,id=nvme2,serial=nvme2"
monitor_cmd "device_add nvme,drive=drive3,id=nvme3,serial=nvme3"
sleep 5
ssh_vm "scripts/setup.sh"
}