summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/lib/printf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/lib/printf.sh')
-rwxr-xr-xtools/testing/selftests/lib/printf.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/lib/printf.sh b/tools/testing/selftests/lib/printf.sh
index 4fdc70fe6980..cbf3b124bd94 100755
--- a/tools/testing/selftests/lib/printf.sh
+++ b/tools/testing/selftests/lib/printf.sh
@@ -1,5 +1,9 @@
#!/bin/sh
# Runs printf infrastructure using test_printf kernel module
+if ! /sbin/modprobe -q -n test_printf; then
+ echo "printf: [SKIP]"
+ exit 77
+fi
if /sbin/modprobe -q test_printf; then
/sbin/modprobe -q -r test_printf