test/vhost: skip vhost tests if vm image does not exist
Change-Id: I9cb039a1b4ca4f71cf75e880c1a560821b24772b Signed-off-by: Seth Howell <seth.howell@intel.com>
This commit is contained in:
parent
a97cc62bcb
commit
b1c2b3f546
@ -2,6 +2,11 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f "/home/sys_sgsw/vhost_scsi_vm_image.qcow2" ]; then
|
||||
echo "VM does not exist, exiting vhost tests without running"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
WORKDIR=$(dirname $0)
|
||||
cd $WORKDIR
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user