From 683099e3b0a0edf17f8789f62af04f3e77bc2d7e Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Wed, 1 May 2019 15:18:05 -0700 Subject: [PATCH] test/vhost: Add vhosttestinit and vhosttestfini functions These are used when running test scripts in iso mode at your desk. Change-Id: I1876771d8a94c9db57636c143f7bf9d6f98bd3aa Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453441 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Darek Stojaczyk --- test/vhost/common.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/vhost/common.sh b/test/vhost/common.sh index cecb6f8fe..3c6c01bdb 100644 --- a/test/vhost/common.sh +++ b/test/vhost/common.sh @@ -31,6 +31,21 @@ mkdir -p $TEST_DIR # source $BASE_DIR/common/autotest.config +function vhosttestinit() +{ + if [ "$TEST_MODE" == "iso" ]; then + $rootdir/scripts/setup.sh + # TODO: Test for VM image in correct spot + fi +} + +function vhosttestfini() +{ + if [ "$TEST_MODE" == "iso" ]; then + $rootdir/scripts/setup.sh reset + fi +} + function message() { if ! $SPDK_VHOST_VERBOSE; then