selftests/mm: run_vmtests: remove sudo and conform to tap
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Thu, 25 Jan 2024 15:46:05 +0000 (20:46 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 23:38:55 +0000 (15:38 -0800)
commit20a2191c2ef35d58aebed704ecf8f31ff959b412
tree7d501e307cc155a0ce66d40ee577c6d4fc1ae325
parentf2943f3f0804dd14b81b0ca9ec1c0e66bba466b7
selftests/mm: run_vmtests: remove sudo and conform to tap

Remove sudo as some test running environments may not have sudo available.
Instead skip the test if root privileges aren't available in the test.

[usama.anjum@collabora.com: on-fault-limit: run test without root privileges otherwise skip]
Link: https://lkml.kernel.org/r/20240201130538.1404897-1-usama.anjum@collabora.com
Link: https://lkml.kernel.org/r/20240125154608.720072-3-usama.anjum@collabora.com
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/on-fault-limit.c
tools/testing/selftests/mm/run_vmtests.sh