Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kamil.konieczny@linux.intel.com, lukasz.laguna@intel.com,
	michal.wajdeczko@intel.com
Subject: [PATCH i-g-t] tests/sriov_basic: Restore the igt_sriov_is_pf check
Date: Thu,  9 May 2024 10:59:56 +0000	[thread overview]
Message-ID: <20240509105956.4118226-1-marcin.bernatowicz@linux.intel.com> (raw)

The requirement `igt_sriov_is_pf` is essential for accurately skipping
tests in scenarios where the `sriov_totalvfs` attribute is absent. This
update restores the previously removed check to ensure proper test
behavior under such conditions.

Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
---
 tests/sriov_basic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/sriov_basic.c b/tests/sriov_basic.c
index 1bc082d76..74f1ce41d 100644
--- a/tests/sriov_basic.c
+++ b/tests/sriov_basic.c
@@ -120,6 +120,7 @@ igt_main
 
 	igt_fixture {
 		pf_fd = drm_open_driver(DRIVER_ANY);
+		igt_require(igt_sriov_is_pf(pf_fd));
 		igt_require(igt_sriov_vfs_supported(pf_fd));
 		igt_require(igt_sriov_get_enabled_vfs(pf_fd) == 0);
 		autoprobe = igt_sriov_is_driver_autoprobe_enabled(pf_fd);
-- 
2.31.1


             reply	other threads:[~2024-05-09 11:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09 10:59 Marcin Bernatowicz [this message]
2024-05-09 11:09 ` [PATCH i-g-t] tests/sriov_basic: Restore the igt_sriov_is_pf check Kamil Konieczny
2024-05-09 11:33 ` ✓ CI.xeBAT: success for " Patchwork
2024-05-09 11:41 ` ✓ Fi.CI.BAT: " Patchwork
2024-05-09 17:56 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-09 23:47 ` ✗ 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=20240509105956.4118226-1-marcin.bernatowicz@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=lukasz.laguna@intel.com \
    --cc=michal.wajdeczko@intel.com \
    /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