From: Simon Glass Date: Tue, 12 Nov 2024 14:13:25 +0000 (-0700) Subject: test: Correct regex string in test_spi X-Git-Url: http://git.dujemihanovic.xyz/html/static/gitweb.css?a=commitdiff_plain;h=5e92fbcefc40ff45ed76757a3592a55d80f02f95;p=u-boot.git test: Correct regex string in test_spi 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 Reviewed-by: Love Kumar Reviewed-by: Simon Glass --- diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py index caca930327..44e54738dd 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