From 8422f8864465bc52640fe333f80066f7a8a61eb1 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Wed, 26 Jul 2017 09:53:48 -0700 Subject: [PATCH] test/nvme: increase delay between plugging devices When the hotplug test was run in a qemu virtual machine, it consistently failed to unplug the devices after insertion. Increasing the delay here to four seconds resulted in proper deletion of the devices and a passing test. (replicated three times) Change-Id: I0283c8440568edd8dd8ca8945e691a29b775aab5 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/371401 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/lib/nvme/hotplug.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/nvme/hotplug.sh b/test/lib/nvme/hotplug.sh index 6a4ac1e10..66986d3c5 100755 --- a/test/lib/nvme/hotplug.sh +++ b/test/lib/nvme/hotplug.sh @@ -117,11 +117,11 @@ timing_enter hotplug_test ssh_vm "examples/nvme/hotplug/hotplug -i 0 -t 25 -n 4 -r 8" & example_pid=$! -sleep 2 +sleep 4 remove_devices -sleep 2 +sleep 4 insert_devices -sleep 2 +sleep 4 remove_devices devices_delete