net/vdev_netvsc: block driver in github action
PATCH 1/1 net/vdev_netvsc: block driver in github action
On Hyper-V systems (including Azure-hosted CI), the vdev_netvsc driver auto-injects itself during vdev bus scan. This interferes with other tests.
Suppress this by detecting via environment variable.
Signed-off-by Stephen Hemminger <[email protected]>
--- drivers/net/vdev_netvsc/vdev_netvsc.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/net/vdev_netvsc/vdev_netvsc.c +8 -0
@@ -805,6 +805,14 @@ vdev_netvsc_scan_callback(__rte_unused void *arg)/** Initialize the custom scan. */ RTE_INIT (vdev_netvsc_custom_scan_add) { +/* +* Hack: github actions run on Azure/Hyper-V container and don't +* want any network devices in that environment to get intertwined +* with any tests. +*/ +if (getenv ("GITHUB_ACTIONS" )) +return ; +if (rte_hypervisor_get () ==RTE_HYPERVISOR_HYPERV )rte_vdev_add_custom_scan (vdev_netvsc_scan_callback,NULL ); }
Signature · 1 line
2.51.0
Quoted 8 lines · On Mon, 23 Feb 2026 09:21:37 -0800 Stephen Hemminger…
On Hyper-V systems (including Azure-hosted CI), the
vdev_netvscdriver auto-injects itself during vdev bus scan. This interferes with other tests.Suppress this by detecting via environment variable.
Signed-off-by Stephen Hemminger <[email protected]>---
Sigh, this won't work either.
The problem is that the CI runs tests with sudo and that strips the environment away.