[PATCH 03/13] keyctl01.sh: Remove the keyctl subcommand check

Cyril Hrubis <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
The test was introduced 10 years ago and the functionality is now
present on all supported distributions.

Signed-off-by: Cyril Hrubis <[email protected]>
---
 testcases/commands/keyctl/keyctl01.sh | 31 ---------------------------
 1 file changed, 31 deletions(-)

diff --git a/testcases/commands/keyctl/keyctl01.sh b/testcases/commands/keyctl/keyctl01.sh
index cdbb8bf8b..514b6b8bf 100755
--- a/testcases/commands/keyctl/keyctl01.sh
+++ b/testcases/commands/keyctl/keyctl01.sh
@@ -33,39 +33,8 @@
 
 TST_SETUP=setup
 
-check_keyctl()
-{
-	local nosup
-	for op in $@; do
-		nosup=0
-
-		if ! keyctl 2>&1 | grep -q "keyctl $op"; then
-			nosup=1
-		fi
-
-		if [ "$op" = "request2" ]; then
-			local key=`keyctl request2 user debug:foo bar`
-			if [ $? -ne 0 ]; then
-				nosup=1
-			fi
-		fi
-
-		if [ "$op" = "unlink" ]; then
-			if ! keyctl unlink $key @s; then
-				nosup=1
-			fi
-		fi
-
-		if [ $nosup -ne 0 ]; then
-			tst_brk TCONF "keyctl operation $op not supported"
-		fi
-	done
-}
-
 setup()
 {
-	check_keyctl negate request2 show unlink
-
 	PATH_KEYSTAT="/proc/key-users"
 
 	if [ ! -f "$PATH_KEYSTAT" ]; then
-- 
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.