summaryrefslogtreecommitdiff
path: root/tests/igt_command_line.sh
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2017-03-21 14:05:04 +0200
committerPetri Latvala <petri.latvala@intel.com>2017-03-31 12:34:32 +0300
commitfa5dc96ce3f7f7d1f51736aa75bc803a30acc4ca (patch)
treeb6990a3c0097339704f2af3c9576005a3e1d5c45 /tests/igt_command_line.sh
parent12dcd4125837f1725603346f1311d5038d8d7877 (diff)
igt_command_line.sh: Handle the special cases of drv_selftest and drm_mm
Kernel selftest launchers use dynamic subtest enumeration. When running on a kernel without selftests, they output nothing from --list-subtests and exit with 0. Handle this specialty in the checker. Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/igt_command_line.sh')
-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