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 <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453441 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
6a8d00949b
commit
683099e3b0
@ -31,6 +31,21 @@ mkdir -p $TEST_DIR
|
|||||||
#
|
#
|
||||||
source $BASE_DIR/common/autotest.config
|
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()
|
function message()
|
||||||
{
|
{
|
||||||
if ! $SPDK_VHOST_VERBOSE; then
|
if ! $SPDK_VHOST_VERBOSE; then
|
||||||
|
Loading…
Reference in New Issue
Block a user