[PATCH i-g-t] igt/pm_rpm: Skip counting modes if modprobed with disable_display

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If we've explicitly disabled the display, we will never find any
connected outputs or modes. Checking for them will fail and report the
missing requirement instead.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Cc: Imre Deak <imre.deak@xxxxxxxxx>
---
 tests/pm_rpm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index fefcb1beb..2c4bf529c 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -2046,7 +2046,6 @@ int main(int argc, char *argv[])
 
 		igt_assert(setup_environment());
 		basic_subtest();
-		drm_resources_equal_subtest();
 		pci_d3_state_subtest();
 		teardown_environment();
 
@@ -2056,7 +2055,8 @@ int main(int argc, char *argv[])
 
 		igt_assert(setup_environment());
 		basic_subtest();
-		drm_resources_equal_subtest();
+		if (enable_one_screen_with_type(data, SCREEN_TYPE_ANY))
+			drm_resources_equal_subtest();
 		pci_d3_state_subtest();
 		teardown_environment();
 	}
-- 
2.18.0

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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux