Message ID | 20230728132120.17322-4-pvorel@suse.cz |
---|---|
State | Accepted |
Headers | show |
Series | shell: Add TST_SKIP_IN_{LOCKDOWN,SECUREBOOT}=1 | expand |
diff --git a/testcases/commands/insmod/insmod01.sh b/testcases/commands/insmod/insmod01.sh index 1881ba389..992b4a05a 100755 --- a/testcases/commands/insmod/insmod01.sh +++ b/testcases/commands/insmod/insmod01.sh @@ -1,6 +1,7 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2016 Fujitsu Ltd. +# Copyright (c) Linux Test Project, 2016-2023 # Author: Guangwen Feng <fenggw-fnst@cn.fujitsu.com> # # Test basic functionality of insmod command. @@ -10,6 +11,8 @@ TST_TESTFUNC=do_test TST_NEEDS_ROOT=1 TST_NEEDS_CMDS="rmmod insmod" TST_NEEDS_MODULE="ltp_insmod01.ko" +TST_SKIP_IN_LOCKDOWN=1 +TST_SKIP_IN_SECUREBOOT=1 inserted=0
Lockdown patchset and secure boot does not allow to install LTP kernel module: insmod: ERROR: could not insert module ltp_insmod01.ko: Operation not permitted insmod01 1 TFAIL: insmod failed Therefore skip the test on them (similar to C tests in 56660bd61). Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1208920 Signed-off-by: Petr Vorel <pvorel@suse.cz> --- testcases/commands/insmod/insmod01.sh | 3 +++ 1 file changed, 3 insertions(+)