test/vhost: fix shared.sh test to run in vagrant box
Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com> Change-Id: I6d255ce3250b97895bd2bb02256f92e14a3c4245 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4666 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
02d4c2b32a
commit
4ffb15c133
@ -41,7 +41,7 @@ function vhosttestinit() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Look for the VM image
|
# Look for the VM image
|
||||||
if [[ ! -f $VM_IMAGE ]]; then
|
if [[ "$1" != "--no_vm" ]] && [[ ! -f $VM_IMAGE ]]; then
|
||||||
error "VM image not found at $VM_IMAGE"
|
error "VM image not found at $VM_IMAGE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -13,7 +13,7 @@ function run_spdk_fio() {
|
|||||||
--spdk_mem=1024 --spdk_single_seg=1 --spdk_json_conf=$testdir/bdev.json "$@"
|
--spdk_mem=1024 --spdk_single_seg=1 --spdk_json_conf=$testdir/bdev.json "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
vhosttestinit
|
vhosttestinit "--no_vm"
|
||||||
|
|
||||||
trap 'error_exit "${FUNCNAME}" "${LINENO}"' ERR SIGTERM SIGABRT
|
trap 'error_exit "${FUNCNAME}" "${LINENO}"' ERR SIGTERM SIGABRT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user