projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a518097
)
selftests: ir: skip when non-root user runs the test
author
Shuah Khan
<shuah@kernel.org>
Thu, 31 Jan 2019 19:43:35 +0000
(12:43 -0700)
committer
Shuah Khan
<shuah@kernel.org>
Wed, 13 Feb 2019 16:10:47 +0000
(09:10 -0700)
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>
tools/testing/selftests/ir/ir_loopback.sh
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/ir/ir_loopback.sh
b/tools/testing/selftests/ir/ir_loopback.sh
index
0a0b8df
..
b90dc99
100755
(executable)
--- a/
tools/testing/selftests/ir/ir_loopback.sh
+++ b/
tools/testing/selftests/ir/ir_loopback.sh
@@
-4,6
+4,11
@@
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4
+if [ $UID != 0 ]; then
+ echo "Please run ir_loopback test as root [SKIP]"
+ exit $ksft_skip
+fi
+
if ! /sbin/modprobe -q -n rc-loopback; then
echo "ir_loopback: module rc-loopback is not found [SKIP]"
exit $ksft_skip