[2/4] dts: update dpdk-devbind script regex
Checks
Commit Message
The current regex used for matching against the
dpdk-devbind status output is no longer matching
correctly. This commit introduces a more permissive
pattern which will yield the device driver in use.
Signed-off-by: Patrick Robb <probb@iol.unh.edu>
Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
---
dts/tests/TestSuite_smoke_tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -135,7 +135,7 @@ def test_device_bound_to_driver(self) -> None:
# with the address for the nic we are on in the loop and then captures the
# name of the driver in a group
devbind_info_for_nic = re.search(
- rf"{nic.pci}[^\\n]*drv=([\\d\\w-]*) [^\\n]*",
+ rf"{nic.pci}.*drv=(\S+) [^\\n]*",
all_nics_in_dpdk_devbind,
)
self.verify(