From e2fdd33d4f4c19b3e2fbc1a4de623d3f07255dc3 Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Fri, 9 Aug 2019 16:31:19 +0200 Subject: [PATCH] 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 --- test/integration/lib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/lib.sh b/test/integration/lib.sh index 453dfdb..9c106f6 100644 --- a/test/integration/lib.sh +++ b/test/integration/lib.sh @@ -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()