test/vm_setup: fix yum-deprectad for fc28 with vpp
Change-Id: I6608725c031daff6f6d59ced0c327f19b6eea979 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/423755 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
183f37e8ad
commit
aca4ba4dd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user