test/vhost: fix includes in the migration test
Fix the following nightly failure: > migration.sh: line 56: vhosttestinit: command not found Change-Id: I56135c2a83de2455238eb7d40de973459019d63b Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456758 Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
c81fc6c161
commit
5f28443821
@ -2,6 +2,11 @@
|
||||
|
||||
set -e
|
||||
|
||||
testdir=$(readlink -f $(dirname $0))
|
||||
rootdir=$(readlink -f $testdir/../../..)
|
||||
source $rootdir/test/common/autotest_common.sh
|
||||
source $rootdir/test/vhost/common.sh
|
||||
|
||||
vms=()
|
||||
declare -A vms_os
|
||||
declare -A vms_raw_disks
|
||||
@ -55,9 +60,6 @@ done
|
||||
|
||||
vhosttestinit
|
||||
|
||||
. $(readlink -e "$(dirname $0)/../common.sh") || exit 1
|
||||
MIGRATION_DIR=$(readlink -f $(dirname $0))
|
||||
|
||||
[[ ! -z "$test_cases" ]] || fail "Need '--test-cases=' parameter"
|
||||
|
||||
trap 'error_exit "${FUNCNAME}" "${LINENO}"' INT ERR EXIT
|
||||
@ -143,7 +145,7 @@ for test_case in ${test_cases//,/ }; do
|
||||
notice "==============================="
|
||||
|
||||
timing_enter migration-tc${test_case}
|
||||
source $MIGRATION_DIR/migration-tc${test_case}.sh
|
||||
source $testdir/migration-tc${test_case}.sh
|
||||
timing_exit migration-tc${test_case}
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user