From 4ffb15c1334b49e00387b7d7b247e233014a129e Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Wed, 14 Oct 2020 14:55:16 +0200 Subject: [PATCH] test/vhost: fix shared.sh test to run in vagrant box Signed-off-by: Maciej Wawryk Change-Id: I6d255ce3250b97895bd2bb02256f92e14a3c4245 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4666 Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Karol Latecki Reviewed-by: Jim Harris --- test/vhost/common.sh | 2 +- test/vhost/shared/shared.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vhost/common.sh b/test/vhost/common.sh index 7e724796b..fbe37c5b6 100644 --- a/test/vhost/common.sh +++ b/test/vhost/common.sh @@ -41,7 +41,7 @@ function vhosttestinit() { fi # 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" exit 1 fi diff --git a/test/vhost/shared/shared.sh b/test/vhost/shared/shared.sh index bbf0fd858..bc06517bc 100755 --- a/test/vhost/shared/shared.sh +++ b/test/vhost/shared/shared.sh @@ -13,7 +13,7 @@ function run_spdk_fio() { --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