Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/perf/i915_ref_count: Skip on __drm_open_driver failure
@ 2022-07-18 22:32 Ashutosh Dixit
  2022-07-18 22:50 ` Dixit, Ashutosh
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Ashutosh Dixit @ 2022-07-18 22:32 UTC (permalink / raw)
  To: igt-dev

Skip early on __drm_open_driver() to generate a consistent failure
signature for CI (rather than a follow-on igt_assert(is_i915_device(fd))).

Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 tests/i915/perf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index e641d5d2db7e..5502a3fb4e59 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -4838,6 +4838,7 @@ test_i915_ref_count(void)
 	igt_debug("baseline ref count (drm fd closed) = %u\n", baseline);
 
 	drm_fd = __drm_open_driver(DRIVER_INTEL);
+	igt_require_intel(drm_fd);
 	devid = intel_get_drm_devid(drm_fd);
 	sysfs = igt_sysfs_open(drm_fd);
 
-- 
2.34.1

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

end of thread, other threads:[~2022-07-19 15:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-18 22:32 [igt-dev] [PATCH i-g-t] tests/perf/i915_ref_count: Skip on __drm_open_driver failure Ashutosh Dixit
2022-07-18 22:50 ` Dixit, Ashutosh
2022-07-19  0:38   ` Umesh Nerlige Ramappa
2022-07-18 23:29 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-07-19  3:38 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-19  4:01   ` Dixit, Ashutosh
2022-07-19 15:03     ` Vudum, Lakshminarayana
2022-07-19  5:20 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-07-19  9:30 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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