summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/igt_command_line.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/igt_command_line.sh b/tests/igt_command_line.sh
index a20e44cf..69fa843d 100755
--- a/tests/igt_command_line.sh
+++ b/tests/igt_command_line.sh
@@ -81,7 +81,12 @@ for test in $TESTLIST; do
fi
if [ $RET -eq 0 -a -z "$LIST" ]; then
- fail $test
+ # Subtest enumeration of kernel selftest launchers depends
+ # on the running kernel. If selftests are not enabled,
+ # they will output nothing and exit with 0.
+ if [ "$testname" != "drv_selftest" -a "$testname" != "drm_mm" ]; then
+ fail $test
+ fi
fi
# check invalid subtest handling