summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/cpufreq/module.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/cpufreq/module.sh')
-rwxr-xr-xtools/testing/selftests/cpufreq/module.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/testing/selftests/cpufreq/module.sh b/tools/testing/selftests/cpufreq/module.sh
index 22563cd122..7f2667e0ae 100755
--- a/tools/testing/selftests/cpufreq/module.sh
+++ b/tools/testing/selftests/cpufreq/module.sh
@@ -24,16 +24,14 @@ test_basic_insmod_rmmod()
# insert module
insmod $1
if [ $? != 0 ]; then
- printf "Insmod $1 failed\n"
- exit;
+ ktap_exit_fail_msg "Insmod $1 failed\n"
fi
printf "Removing $1 module\n"
# remove module
rmmod $1
if [ $? != 0 ]; then
- printf "rmmod $1 failed\n"
- exit;
+ ktap_exit_fail_msg "rmmod $1 failed\n"
fi
printf "\n"