summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/cpufreq/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/cpufreq/main.sh')
-rwxr-xr-xtools/testing/selftests/cpufreq/main.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/cpufreq/main.sh b/tools/testing/selftests/cpufreq/main.sh
index d83922de9d89..31f8c9a76c5f 100755
--- a/tools/testing/selftests/cpufreq/main.sh
+++ b/tools/testing/selftests/cpufreq/main.sh
@@ -13,6 +13,9 @@ SYSFS=
CPUROOT=
CPUFREQROOT=
+# Kselftest framework requirement - SKIP code is 4.
+ksft_skip=4
+
helpme()
{
printf "Usage: $0 [-h] [-todg args]
@@ -38,7 +41,7 @@ prerequisite()
if [ $UID != 0 ]; then
echo $msg must be run as root >&2
- exit 2
+ exit $ksft_skip
fi
taskset -p 01 $$