[PATCH v9 11/12] test: Correct regex string in test_spi

Love Kumar love.kumar at amd.com
Wed Nov 13 06:38:27 CET 2024



On 12/11/24 7:43 pm, Simon Glass wrote:
> Use an 'r' string to avoid a warning:
> 
>    test/py/tests/test_spi.py:698: DeprecationWarning: invalid escape
>       sequence '\s'
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> (no changes since v2)
> 
> Changes in v2:
> - Add new patch to correct a regex string in test_spi
> 
>   test/py/tests/test_spi.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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

Reviewed-by: Love Kumar <love.kumar at amd.com>


More information about the U-Boot mailing list