From dc928e26d622cdef5ccdfcb3c058172634477bf0 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Apr 25 2019 19:24:47 +0000 Subject: Fix t_GetArch for armhfp (centos-userland-release) --- diff --git a/tests/0_lib/functions.sh b/tests/0_lib/functions.sh index 6898171..beb2cd2 100755 --- a/tests/0_lib/functions.sh +++ b/tests/0_lib/functions.sh @@ -111,7 +111,7 @@ function t_GetPkgVer # Description: get the arch function t_GetArch { - rpm -q --queryformat '%{arch}\n' centos-release + rpm -q $(rpm -qf /etc/redhat-release) --queryformat '%{arch}\n' } # Set the arch