Skip to content

Commit

Permalink
Skip IMA test when built without IMA support
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnks authored and pmatilai committed Nov 22, 2024
1 parent a48cc04 commit 41120de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/atlocal.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/rpmsigdig.at
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 41120de

Please sign in to comment.