Commit 6fed4f61 authored by Maciej Wawryk's avatar Maciej Wawryk Committed by Tomasz Zawadzki
Browse files

test/vm_setup: Update yum repository before install packages in Centos8



There is fail during install using vm_setup.sh:
    Error: Failed to synchronize cache for repo 'AppStream'
adding yum update on instalation begining fix this issue.

Signed-off-by: default avatarMaciej Wawryk <maciejx.wawryk@intel.com>
Change-Id: I92a3298d332ffe94c63a4f007e480a0c4d529b00
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1498


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 36b7098a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -456,6 +456,10 @@ git -C spdk_repo/spdk config submodule.intel-ipsec-mb.url "${GIT_REPO_INTEL_IPSE
git -C spdk_repo/spdk submodule update --init --recursive

if $INSTALL; then
    if [ "${OSID} ${OSVERSION}" == 'centos 8' ]; then
        #During install using vm_setup.sh there is error with AppStream, to fix it we need to refresh yum
        sudo yum update -y --refresh
    fi
    sudo spdk_repo/spdk/scripts/pkgdep.sh --all

    if [ $PACKAGEMNG == 'pkg' ]; then