tests/integration: fix dependency ccache on centos 7

Standard centos7 repos don't contain ccache so we have to install it
from epel just like we do on rhel7.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2019-08-09 16:31:19 +02:00
parent c4fafedf3b
commit e2fdd33d4f
1 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,9 @@ kpatch_rhel_dependencies()
kpatch_centos_dependencies()
{
local kernel_version
local arch
kernel_version=$(uname -r)
arch=$(uname -m)
sudo yum install -y gcc gcc-c++ "kernel-devel-${kernel_version%.*}" elfutils elfutils-devel
sudo yum install -y yum-utils zlib-devel binutils-devel newt-devel \
@ -82,7 +84,7 @@ kpatch_centos_dependencies()
sudo yum-builddep -y "kernel-${kernel_version%.*}"
sudo debuginfo-install -y "kernel-${kernel_version%.*}"
sudo yum install -y ccache
sudo yum install -y "https://dl.fedoraproject.org/pub/epel/7/${arch}/Packages/c/ccache-3.3.4-1.el7.${arch}.rpm"
}
kpatch_dependencies()