Commit aca4ba4d authored by Seth Howell's avatar Seth Howell Committed by Jim Harris
Browse files

test/vm_setup: fix yum-deprectad for fc28 with vpp



Change-Id: I6608725c031daff6f6d59ced0c327f19b6eea979
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/423755


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 183f37e8
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -281,6 +281,25 @@ cd ~

if echo $CONF | grep -q vpp; then
    # Vector packet processing (VPP) is installed for use with iSCSI tests.
    # At least on fedora 28, the yum setup that vpp uses is deprecated and fails.
    # The actions taken under the vpp_setup script are necessary to fix this issue.
    if [ -d vpp_setup ]; then
        echo "vpp setup already done."
    else
        echo "%_topdir  $HOME/vpp_setup/src/rpm" >> ~/.rpmmacros
        sudo dnf install perl-generators
        mkdir -p ~/vpp_setup/src/rpm
        cd ~/vpp_setup/src/rpm
        mkdir -p BUILD RPMS SOURCES SPECS SRPMS
        dnf download --source redhat-rpm-config
        rpm -ivh redhat-rpm-config*
        sed -i s/"Requires: (annobin if gcc)"//g SPECS/redhat-rpm-config.spec
        rpmbuild -ba SPECS/*.spec
        sudo dnf remove -y --noautoremove redhat-rpm-config
        sudo rpm -Uvh RPMS/noarch/*
        cd -
    fi

    if [ -d vpp ]; then
        echo "vpp already cloned."
        if [ ! -d vpp/build-root ]; then