From 8025dee51318a5f7e140d59c8c3329da7a43d89c Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 14 Jun 2017 11:16:41 -0700 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/365494 Reviewed-by: Jim Harris Reviewed-by: Ben Walker Tested-by: SPDK Automated Test System --- test/lib/nvme/hotplug.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lib/nvme/hotplug.sh b/test/lib/nvme/hotplug.sh index d7cbc3b91..b033a56dc 100755 --- a/test/lib/nvme/hotplug.sh +++ b/test/lib/nvme/hotplug.sh @@ -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" }