[PATCH v1] dts: fix smoke tests driver regex
Juraj Linkeš
juraj.linkes at pantheon.tech
Fri Feb 23 09:30:01 CET 2024
Add hyphen to the regex, which is needed for drivers such as vfio-pci.
Fixes: 88489c0501af ("dts: add smoke tests")
Cc: jspewock at iol.unh.edu
Signed-off-by: Juraj Linkeš <juraj.linkes at pantheon.tech>
---
dts/tests/TestSuite_smoke_tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dts/tests/TestSuite_smoke_tests.py b/dts/tests/TestSuite_smoke_tests.py
index 5e2bac14bd..1be5c3047e 100644
--- a/dts/tests/TestSuite_smoke_tests.py
+++ b/dts/tests/TestSuite_smoke_tests.py
@@ -130,7 +130,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(
- f"{nic.pci}[^\\n]*drv=([\\d\\w]*) [^\\n]*",
+ f"{nic.pci}[^\\n]*drv=([\\d\\w-]*) [^\\n]*",
all_nics_in_dpdk_devbind,
)
self.verify(
--
2.34.1
More information about the dev
mailing list