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:
parent
d46f502999
commit
8025dee513
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user