tests/kms_pipe_crc_basic: Don't suspend the machine if the pipe is not present.

suspend-read-crc-pipe will perform a suspend and then skip the test in case the
pipe is not present or is fused w/ another pipe.  Skip the test before doing
the suspend.

v2: Somehow the subject was trimmed.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
This commit is contained in:
marius vlad 2016-02-08 19:12:58 +02:00 committed by Marius Vlad
parent e3e00bae23
commit f8af3565bd

View File

@ -222,6 +222,7 @@ igt_main
test_read_crc(&data, i, TEST_SEQUENCE | TEST_NONBLOCK);
igt_subtest_f("suspend-read-crc-pipe-%c", 'A'+i) {
igt_skip_on(i >= data.display.n_pipes);
igt_system_suspend_autoresume();
test_read_crc(&data, i, 0);