test/eal: remove PCI probing for vdev tests
PATCH 1/1 test/eal: remove PCI probing for vdev tests
Similarly to commit f67f76e6bbfd ("test/eal: remove PCI probing for recursive calls"), let's disable PCI probing in vdev tests as it triggers false positive failures in GHA.
--- app/test/test_eal_flags.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
app/test/test_eal_flags.c +4 -4
@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)/* Test with invalid vdev option */ const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"eth_dummy" }; + bus_debug_logs, no_pci, vdev,"eth_dummy" };/* Test with valid vdev option */ const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0" }; + bus_debug_logs, no_pci, vdev,"net_ring0" };const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,args=test" }; + bus_debug_logs, no_pci, vdev,"net_ring0,args=test" };const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,nodeaction=r1:0:CREATE" }; + bus_debug_logs, no_pci, vdev,"net_ring0,nodeaction=r1:0:CREATE" };if (launch_proc (vdevinval) ==0 ) { printf("Error (line %d) - process did run ok with invalid vdev parameter\n",
Signature · 1 line
2.53.0
Quoted 37 lines · David Marchand
Similarly to commit
f67f76e6bbfd("test/eal: remove PCI probing for recursive calls"), let's disable PCI probing in vdev tests as it triggers false positive failures in GHA.Signed-off-by David Marchand <[email protected]>--- app/test/test_eal_flags.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)app/test/test_eal_flags.c +4
-4@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)/* Test with invalid vdev option */ const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"eth_dummy" }; + bus_debug_logs, no_pci, vdev,"eth_dummy" };/* Test with valid vdev option */ const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0" }; + bus_debug_logs, no_pci, vdev,"net_ring0" };const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,args=test" }; + bus_debug_logs, no_pci, vdev,"net_ring0,args=test" };const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,nodeaction=r1:0:CREATE" }; + bus_debug_logs, no_pci, vdev,"net_ring0,nodeaction=r1:0:CREATE" };if (launch_proc (vdevinval) ==0 ) { printf("Error (line %d) - process did run ok with invalid vdev parameter\n",Signature · 1 line
2.53.0
Quoted 21 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Monday 23 February 2026 15:56
To: [email protected]
Cc: [email protected]
Subject: [PATCH] test/eal: remove PCI probing for vdev testsSimilarly to commit
f67f76e6bbfd("test/eal: remove PCI probing for recursive calls"), let's disable PCI probing in vdev tests as it triggers false positive failures in GHA.Signed-off-by David Marchand <[email protected]>--- app/test/test_eal_flags.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)app/test/test_eal_flags.c +0
-0
app/test/test_eal_flags.c test_invalid_vdev_flag(void) · line 429
Quoted 10 lines
app/test/test_eal_flags.c +2
-2@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)/* Test with invalid vdev option */ const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"eth_dummy" }; + bus_debug_logs, no_pci, vdev,"eth_dummy" };/* Test with valid vdev option */ const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0" }; + bus_debug_logs, no_pci, vdev,"net_ring0" };
Could use this opportunity to replace tab before no_pci with space.
Quoted 12 lines
app/test/test_eal_flags.c +2
-3const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,args=test" }; + bus_debug_logs, no_pci, vdev,"net_ring0,args=test" };const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,nodeaction=r1:0:CREATE" }; + bus_debug_logs, no_pci, vdev,"net_ring0,nodeaction=r1:0:CREATE" };if (launch_proc (vdevinval) ==0 ) { printf("Error (line %d) - process did run ok with invalid vdev parameter\n", --
Quoted 1 line
2.53.0
Definitely not a problem of this patch, but creating a separate define for each command-line argument like --no-huge does nothing to save us from repeating prgname, prefix, eal_debug_logs, ... bazillion times. If tokens are burning a hole in someone's pocket, perhaps instead we could move this whole command prefix into some kind of function or macro with parameters (possibly one launching subprocess as well).
Another thought, should we have NOPCI_OK/NOPCI_SKIP similar to ASAN and NOHUGE?
Quoted 7 lines · Marat Khalili
Quoted 7 lines
app/test/test_eal_flags.c +1
-1@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)/* Test with invalid vdev option */ const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"eth_dummy" }; + bus_debug_logs, no_pci, vdev,"eth_dummy" };
Quoted 6 lines
app/test/test_eal_flags.c test_invalid_vdev_flag(void) · line 429
Quoted 4 lines
app/test/test_eal_flags.c +1
-1/* Test with valid vdev option */ const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0" }; + bus_debug_logs, no_pci, vdev,"net_ring0" };Could use this opportunity to replace tab before
no_pciwith space.
Oh yes, good catch.
Quoted 15 lines
Quoted 13 lines
app/test/test_eal_flags.c +2
-3const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,args=test" }; + bus_debug_logs, no_pci, vdev,"net_ring0,args=test" };const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs, - bus_debug_logs, vdev,"net_ring0,nodeaction=r1:0:CREATE" }; + bus_debug_logs, no_pci, vdev,"net_ring0,nodeaction=r1:0:CREATE" };if (launch_proc (vdevinval) ==0 ) { printf("Error (line %d) - process did run ok with invalid vdev parameter\n", --Quoted 1 line
2.53.0
Quoted 6 lines
Acked-by Marat Khalili <[email protected]>Tested-by Marat Khalili <[email protected]>Definitely not a problem of this patch, but creating a separate define for each command-line argument like --no-huge does nothing to save us from repeating
prgname, prefix, eal_debug_logs, ...bazillion times. If tokens are burning a hole in someone's pocket, perhaps instead we could move this whole command prefix into some kind of function or macro with parameters (possibly one launching subprocess as well).Another thought, should we have NOPCI_OK/NOPCI_SKIP similar to ASAN and NOHUGE?
It would be simpler to always disable pci and keep it enabled for those tests that do require it.
I wonder what unit tests do require PCI in the fast-tests suite... probably really few.
Signature · 1 line
David Marchand
David Marchand
AppliedQuoted 6 lines · David Marchand
Similarly to commit
f67f76e6bbfd("test/eal: remove PCI probing for recursive calls"), let's disable PCI probing in vdev tests as it triggers false positive failures in GHA.Signed-off-by David Marchand <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand