intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if
@ 2016-02-04 14:25 Marius Vlad
  2016-02-08 17:12 ` [PATCH i-g-t v2] tests/kms_pipe_crc_basic: Don't suspend the machine if the pipe is not present Marius Vlad
  2016-02-15 16:57 ` [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if Daniel Vetter
  0 siblings, 2 replies; 3+ messages in thread
From: Marius Vlad @ 2016-02-04 14:25 UTC (permalink / raw)
  To: intel-gfx

suspend-read-crc-pipe will perform a suspend and then skip the test in case the
pipe is not present on the platform. Skip the test before doing the suspend.


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

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);
-- 
2.7.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH i-g-t v2] tests/kms_pipe_crc_basic: Don't suspend the machine if the pipe is not present.
  2016-02-04 14:25 [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if Marius Vlad
@ 2016-02-08 17:12 ` Marius Vlad
  2016-02-15 16:57 ` [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: Marius Vlad @ 2016-02-08 17:12 UTC (permalink / raw)
  To: intel-gfx

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 --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);
-- 
2.7.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if
  2016-02-04 14:25 [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if Marius Vlad
  2016-02-08 17:12 ` [PATCH i-g-t v2] tests/kms_pipe_crc_basic: Don't suspend the machine if the pipe is not present Marius Vlad
@ 2016-02-15 16:57 ` Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2016-02-15 16:57 UTC (permalink / raw)
  To: Marius Vlad; +Cc: intel-gfx

On Thu, Feb 04, 2016 at 04:25:41PM +0200, Marius Vlad wrote:
> suspend-read-crc-pipe will perform a suspend and then skip the test in case the
> pipe is not present on the platform. Skip the test before doing the suspend.
> 
> 
> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
> ---
>  tests/kms_pipe_crc_basic.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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);

We should place this into an igt_fixture at the top of the loop. Hitting
igt_skip outside of any testcase means we'll skip all the subsequent ones
without doing any work.

Otoh this is a bit a bikeshed, so Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
either way.
-Daniel

>  			igt_system_suspend_autoresume();
>  
>  			test_read_crc(&data, i, 0);
> -- 
> 2.7.0
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-15 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 14:25 [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if Marius Vlad
2016-02-08 17:12 ` [PATCH i-g-t v2] tests/kms_pipe_crc_basic: Don't suspend the machine if the pipe is not present Marius Vlad
2016-02-15 16:57 ` [PATCH i-g-t] tests/kms_pipe_crc_basic: Don't suspend the machine if Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).