[v1] dts: fix smoke tests driver regex
Checks
Commit Message
Add hyphen to the regex, which is needed for drivers such as vfio-pci.
Fixes: 88489c0501af ("dts: add smoke tests")
Cc: jspewock@iol.unh.edu
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
dts/tests/TestSuite_smoke_tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu>
Tested-by: Nicholas Pratte <npratte@iol.unh.edu>
>
> Add hyphen to the regex, which is needed for drivers such as vfio-pci.
>
> Fixes: 88489c0501af ("dts: add smoke tests")
> Cc: jspewock@iol.unh.edu
> Signed-off-by: Juraj Linkeš <juraj.linkes@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
>
>
>
23/02/2024 09:30, Juraj Linkeš:
> Add hyphen to the regex, which is needed for drivers such as vfio-pci.
>
> Fixes: 88489c0501af ("dts: add smoke tests")
> Cc: jspewock@iol.unh.edu
> Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu>
Tested-by: Nicholas Pratte <npratte@iol.unh.edu>
Applied, thanks.
@@ -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(