Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/perf/i915_ref_count: Skip on __drm_open_driver failure
Date: Mon, 18 Jul 2022 15:32:05 -0700	[thread overview]
Message-ID: <20220718223205.1629532-1-ashutosh.dixit@intel.com> (raw)

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

             reply	other threads:[~2022-07-18 22:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-18 22:32 Ashutosh Dixit [this message]
2022-07-18 22:50 ` [igt-dev] [PATCH i-g-t] tests/perf/i915_ref_count: Skip on __drm_open_driver failure 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220718223205.1629532-1-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox