[PATCH 1/1] test: fix regular expression in test_spi_negative()

Simon Glass sjg at chromium.org
Thu Nov 7 14:44:35 CET 2024


On Thu, 7 Nov 2024 at 03:39, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Escape sequence \s is only allowable in raw strings.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  test/py/tests/test_spi.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Thanks, just did the same patch locally yesterday.


>
> diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py
> index caca9303271..44e54738dd0 100644
> --- a/test/py/tests/test_spi.py
> +++ b/test/py/tests/test_spi.py
> @@ -695,7 +695,7 @@ def test_spi_negative(u_boot_console):
>
>          # Read to relocation address
>          output = u_boot_console.run_command('bdinfo')
> -        m = re.search('relocaddr\s*= (.+)', output)
> +        m = re.search(r'relocaddr\s*= (.+)', output)
>          res_area = int(m.group(1), 16)
>
>          start = 0
> --
> 2.45.2
>


More information about the U-Boot mailing list