test/vhost: fix listing vms directories
Wildcard was missing from expression so VMs with number greater than 9 were not discovered. This caused fails during shutdown process as VMs were not killed. Change-Id: I3efcfe50aa709f408a4d91b4317a85ffa2f4d84e Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/403039 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Paweł Niedźwiecki <pawelx.niedzwiecki@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
0bce761614
commit
f3cfa15e35
@ -428,7 +428,7 @@ function vm_kill()
|
|||||||
#
|
#
|
||||||
function vm_list_all()
|
function vm_list_all()
|
||||||
{
|
{
|
||||||
local vms="$(shopt -s nullglob; echo $VM_BASE_DIR/[0-9])"
|
local vms="$(shopt -s nullglob; echo $VM_BASE_DIR/[0-9]*)"
|
||||||
if [[ ! -z "$vms" ]]; then
|
if [[ ! -z "$vms" ]]; then
|
||||||
basename --multiple $vms
|
basename --multiple $vms
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user