public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] igt/pm_backlight: Require a connected output for the backlight
@ 2018-09-04 21:34 Chris Wilson
  2018-09-04 22:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  2018-09-05  1:52 ` [igt-dev] [PATCH i-g-t] " Dhinakaran Pandiyan
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2018-09-04 21:34 UTC (permalink / raw)
  To: igt-dev

We cannot control the backlight if its attached output is not connected.
Don't assert, but require.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/pm_backlight.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/pm_backlight.c b/tests/pm_backlight.c
index 33614e969..e94340a2b 100644
--- a/tests/pm_backlight.c
+++ b/tests/pm_backlight.c
@@ -225,7 +225,9 @@ igt_main
 			break;
 		}
 
-		igt_assert_f(found, "Could not map \"%s\" to output (%s?)\n", name, name + 6);
+		igt_require_f(found,
+			      "Could not map backlight for \"%s\" to connected output\n",
+			      name);
 
 		igt_output_set_pipe(output, pipe);
 		mode = igt_output_get_mode(output);
-- 
2.19.0.rc1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2018-09-05  1:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04 21:34 [igt-dev] [PATCH i-g-t] igt/pm_backlight: Require a connected output for the backlight Chris Wilson
2018-09-04 22:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2018-09-05  1:52 ` [igt-dev] [PATCH i-g-t] " Dhinakaran Pandiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox