diff mbox

[i-g-t,v2] tests/kms_pipe_crc_basic: Don't suspend the machine if the pipe is not present.

Message ID 1454951578-2986-1-git-send-email-marius.c.vlad@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marius Vlad Feb. 8, 2016, 5:12 p.m. UTC
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.


Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
---
 tests/kms_pipe_crc_basic.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 3c51ba0..dbb2919 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -271,6 +271,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);