From f705e8645d2c282b09043abc6550c1e38b1435d4 Mon Sep 17 00:00:00 2001 From: Xin Long Date: Thu, 19 May 2022 15:47:42 -0400 Subject: [PATCH] fix ovs link in gating tests The link for ovs installation is no longer available, fix it. Resolves: rhbz#2060445 Signed-off-by: Xin Long --- tests/basic/test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/basic/test.sh b/tests/basic/test.sh index db5b71f..3e5a671 100644 --- a/tests/basic/test.sh +++ b/tests/basic/test.sh @@ -66,9 +66,10 @@ libteam_start_ovs() { local url=http://download-node-02.eng.bos.redhat.com/brewroot/packages - rpm -qa | grep openvswitch >> libteam.log || \ - yum install -y $url/openvswitch2.15/2.15.0/16.el9fdp/x86_64/openvswitch2.15-2.15.0-16.el9fdp.x86_64.rpm \ - $url/openvswitch-selinux-extra-policy/1.0/29.el9fdp/noarch/openvswitch-selinux-extra-policy-1.0-29.el9fdp.noarch.rpm + ver=`curl -s $url/openvswitch2.15/2.15.0/ | grep -o "[0-9]*.el9fdp" |tail -1` + pver=`curl -s $url/openvswitch-selinux-extra-policy/1.0/ |grep -o "[0-9]*.el9fdp" |tail -1` + yum install -y $url/openvswitch2.15/2.15.0/$ver/x86_64/openvswitch2.15-2.15.0-$ver.x86_64.rpm \ + $url/openvswitch-selinux-extra-policy/1.0/$pver/noarch/openvswitch-selinux-extra-policy-1.0-$pver.noarch.rpm systemctl start openvswitch }