Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/sriov_basic: Restore the igt_sriov_is_pf check
@ 2024-05-09 10:59 Marcin Bernatowicz
  2024-05-09 11:09 ` Kamil Konieczny
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Marcin Bernatowicz @ 2024-05-09 10:59 UTC (permalink / raw)
  To: igt-dev; +Cc: kamil.konieczny, lukasz.laguna, michal.wajdeczko

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


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

end of thread, other threads:[~2024-05-09 23:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09 10:59 [PATCH i-g-t] tests/sriov_basic: Restore the igt_sriov_is_pf check Marcin Bernatowicz
2024-05-09 11:09 ` 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

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