summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/user/test_user_copy.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-24 06:26:19 +0800
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-24 06:26:19 +0800
commitb13fbe77132575f621ce992a9be47d067a606308 (patch)
tree6bb580204791240954e3abd5fcac8bdb594aa25b /tools/testing/selftests/user/test_user_copy.sh
parent81f9c4e4177d31ced6f52a89bb70e93bfb77ca03 (diff)
parenteb83d5f7d07ed913d62ca4ad1e14fb6ca4937bab (diff)
downloadlinux-stable-b13fbe77132575f621ce992a9be47d067a606308.tar.gz
linux-stable-b13fbe77132575f621ce992a9be47d067a606308.tar.bz2
linux-stable-b13fbe77132575f621ce992a9be47d067a606308.zip
Merge tag 'linux-kselftest-4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fixes from Shuah Khan: - fix new sparc64 adi driver test compile errors on non-sparc systems - fix config fragment for sync framework for improved test coverage - fix several tests to return correct Kselftest skip code * tag 'linux-kselftest-4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: sparc64: Add missing SPDX License Identifiers selftests: sparc64: delete RUN_TESTS and EMIT_TESTS overrides selftests: sparc64: Fix to do nothing on non-sparc64 selftests: sync: add config fragment for testing sync framework selftests: vm: return Kselftest Skip code for skipped tests selftests: zram: return Kselftest Skip code for skipped tests selftests: user: return Kselftest Skip code for skipped tests selftests: sysctl: return Kselftest Skip code for skipped tests selftests: static_keys: return Kselftest Skip code for skipped tests selftests: pstore: return Kselftest Skip code for skipped tests
Diffstat (limited to 'tools/testing/selftests/user/test_user_copy.sh')
-rwxr-xr-xtools/testing/selftests/user/test_user_copy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/user/test_user_copy.sh b/tools/testing/selftests/user/test_user_copy.sh
index d60506fc77f8..f9b31a57439b 100755
--- a/tools/testing/selftests/user/test_user_copy.sh
+++ b/tools/testing/selftests/user/test_user_copy.sh
@@ -2,6 +2,13 @@
# SPDX-License-Identifier: GPL-2.0
# Runs copy_to/from_user infrastructure using test_user_copy kernel module
+# Kselftest framework requirement - SKIP code is 4.
+ksft_skip=4
+
+if ! /sbin/modprobe -q -n test_user_copy; then
+ echo "user: module test_user_copy is not found [SKIP]"
+ exit $ksft_skip
+fi
if /sbin/modprobe -q test_user_copy; then
/sbin/modprobe -q -r test_user_copy
echo "user_copy: ok"