diff --git a/tests/atlocal.in b/tests/atlocal.in index 3ec3f1802e..4db6957c17 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -43,6 +43,11 @@ if [ "@WITH_CAP@" == "ON" ]; then else CAP_DISABLED=true; fi +if [ "@WITH_IMAEVM@" == "ON" ]; then + IMA_DISABLED=false; +else + IMA_DISABLED=true; +fi if mknod foodev c 123 123 2>/dev/null; then MKNOD_DISABLED=false rm -f foodev diff --git a/tests/rpmsigdig.at b/tests/rpmsigdig.at index 4ef1e8165a..63bef22c15 100644 --- a/tests/rpmsigdig.at +++ b/tests/rpmsigdig.at @@ -1823,6 +1823,7 @@ RPMTEST_CLEANUP AT_SETUP([ima]) AT_KEYWORDS([rpmsign file signature]) +AT_SKIP_IF([$IMA_DISABLED]) RPMTEST_SETUP cp /data/RPMS/hello-2.0-1.x86_64.rpm /tmp/ @@ -1830,7 +1831,7 @@ gpg2 --import /data/keys/rpm.org-rsa-2048-test.secret rpmsign --key-id 4344591E1964C5FC --addsign --signfiles --fskpath=/data/keys/privkey.pem /tmp/hello-2.0-1.x86_64.rpm RPMTEST_CHECK([[ -rpm -qp --qf "[%{filenames}:%{filesignatures}\n]" /tmp/hello-2.0-1.x86_64.rpm | sed 's/:.\+$/:(...)/' +rpm -qp --qf "[%{filenames}:%{filesignatures}\n]" /tmp/hello-2.0-1.x86_64.rpm | sed 's/:[^(none)].\+$/:(...)/' rpm -qp --qf "[%{filenames}:%{filesignatures}\n]" /data/RPMS/imatest-1.0-1.fc34.noarch.rpm ]], [0],