From 15c0d3d61597dea12e15c2695e34b48fb3c22abe Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Nov 26 2018 12:51:38 +0000 Subject: Fix fastestmirror check for armhfp --- diff --git a/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh b/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh index 94f3568..164b146 100755 --- a/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh +++ b/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh @@ -23,7 +23,11 @@ t_CheckExitStatus $? if [ $centos_ver == 5 ]; then BaseDir=/var/cache/yum/ else - BaseDir=/var/cache/yum/`uname -i`/$centos_ver + BaseArch=`uname -i` + if [ "$BaseArch" == "armv7l" ];then + BaseArch="armhfp" + fi + BaseDir=/var/cache/yum/$BaseArch/$centos_ver fi t_Log "Running $0 - Ensure we have mirrorlist enabled."