test/nvme: optimization of hotplug script.
Change-Id: I167faf4daf04e50b7cb74a90cfeaa0f7a78a113a Signed-off-by: cunyinch <cunyin.chang@intel.com> Reviewed-on: https://review.gerrithub.io/366032 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ziye Yang <optimistyzy@gmail.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
721a4d44ec
commit
c80e7df5c3
@ -21,13 +21,13 @@ function monitor_cmd() {
|
||||
}
|
||||
|
||||
function get_online_devices_count() {
|
||||
ssh_vm "lspci | grep "NVM" | wc -l"
|
||||
ssh_vm "lspci | grep -c NVM"
|
||||
}
|
||||
|
||||
function wait_for_devices_ready() {
|
||||
count=$(get_online_devices_count)
|
||||
|
||||
while [ "$count" -ne "4" ]; do
|
||||
while [ $count -ne 4 ]; do
|
||||
echo "waitting for all devices online"
|
||||
count=$(get_online_devices_count)
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user