Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: ir: skip when non-root user runs the test

Skip instead of fail when non-root user runs the test.

Signed-off-by: Shuah Khan <shuah@kernel.org>
Acked-by: Sean Young <sean@mess.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>

+5
+5
tools/testing/selftests/ir/ir_loopback.sh
··· 4 4 # Kselftest framework requirement - SKIP code is 4. 5 5 ksft_skip=4 6 6 7 + if [ $UID != 0 ]; then 8 + echo "Please run ir_loopback test as root [SKIP]" 9 + exit $ksft_skip 10 + fi 11 + 7 12 if ! /sbin/modprobe -q -n rc-loopback; then 8 13 echo "ir_loopback: module rc-loopback is not found [SKIP]" 9 14 exit $ksft_skip