diff options
author | Petri Latvala <petri.latvala@intel.com> | 2017-03-21 14:05:04 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-03-31 12:34:32 +0300 |
commit | fa5dc96ce3f7f7d1f51736aa75bc803a30acc4ca (patch) | |
tree | b6990a3c0097339704f2af3c9576005a3e1d5c45 /tests/igt_command_line.sh | |
parent | 12dcd4125837f1725603346f1311d5038d8d7877 (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-x | tests/igt_command_line.sh | 7 |
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 |