Skip to contentSkip to conversation

igt/kms_pipe_crc_basic: Print pipe name when skipping

PATCH In review Gabriel Krisman Bertazi 2 participants 3 messages Jun 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 igt/kms_pipe_crc_basic: Print pipe name when skipping

---
 tests/kms_pipe_crc_basic.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/kms_pipe_crc_basic.c +2 -1
index f49b434857e6..177211249808 100644
@@ -172,7 +172,8 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags)
 		valid_connectors ++;
 	}
 
-	igt_require_f(valid_connectors, "No connector found for pipe %i\n", pipe);
+	igt_require_f(valid_connectors, "No connector found for pipe %s\n",
+		      kmstest_pipe_name(pipe));
 }
 
 data_t data = {0, };
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/2 igt/kms_pipe_crc_basic: Skip test before system suspend

Do a dummy crc read such that if there are no valid outputs for the pipe, it skip the test before doing a system suspend.

---
 tests/kms_pipe_crc_basic.c | 3 +++
 1 file changed, 3 insertions(+)
tests/kms_pipe_crc_basic.c +3 -0
index 177211249808..35adddba648a 100644
@@ -222,6 +222,9 @@ igt_main
 
 		igt_subtest_f("suspend-read-crc-pipe-%c", 'A'+i) {
 			igt_skip_on(i >= data.display.n_pipes);
+
+			test_read_crc(&data, i, 0);
+
 			igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
 						      SUSPEND_TEST_NONE);
 
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/2
#2 lore raw
In reply to Gabriel Krisman Bertazi

The series is

Quoted 26 lines · Gabriel Krisman Bertazi
---
 tests/kms_pipe_crc_basic.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/kms_pipe_crc_basic.c +2 -1
index f49b434857e6..177211249808 100644
@@ -172,7 +172,8 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags)
 		valid_connectors ++;
 	}
 
-	igt_require_f(valid_connectors, "No connector found for pipe %i\n", pipe);
+	igt_require_f(valid_connectors, "No connector found for pipe %s\n",
+		      kmstest_pipe_name(pipe));
 }
 
 data_t data = {0, };
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx