From 01bae31eef1ccc7a25530934d76116e4397f4745 Mon Sep 17 00:00:00 2001 From: Peter KolĂ­nek Date: Apr 17 2018 21:25:21 +0000 Subject: skip modsign test if keyutils are not installed --- diff --git a/default/modsign/runtest.sh b/default/modsign/runtest.sh index 9907bb0..23f276d 100755 --- a/default/modsign/runtest.sh +++ b/default/modsign/runtest.sh @@ -10,6 +10,12 @@ if [ "$is_root" -ne "0" ]; then exit 3 fi +keyctl &>/dev/null +if [ "$?" -eq "127" ]; then + echo "keyutils must be installed for this test." + exit 3 +fi + # Run ./modsign_tests.sh result=$?