summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/cpufreq/cpufreq.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/cpufreq/cpufreq.sh')
-rwxr-xr-xtools/testing/selftests/cpufreq/cpufreq.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/cpufreq/cpufreq.sh b/tools/testing/selftests/cpufreq/cpufreq.sh
index b583a2fb45..a8b1dbc0a3 100755
--- a/tools/testing/selftests/cpufreq/cpufreq.sh
+++ b/tools/testing/selftests/cpufreq/cpufreq.sh
@@ -178,8 +178,7 @@ cpufreq_basic_tests()
count=$(count_cpufreq_managed_cpus)
if [ $count = 0 ]; then
- printf "No cpu is managed by cpufreq core, exiting\n"
- exit;
+ ktap_exit_fail_msg "No cpu is managed by cpufreq core, exiting\n"
else
printf "CPUFreq manages: $count CPUs\n\n"
fi