]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: Correct regex string in test_spi
authorSimon Glass <sjg@chromium.org>
Tue, 12 Nov 2024 14:13:25 +0000 (07:13 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Nov 2024 18:01:35 +0000 (12:01 -0600)
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@chromium.org>
Reviewed-by: Love Kumar <love.kumar@amd.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_spi.py

index caca9303271c021ee56b7a4e8f883024adafe591..44e54738dd09c35ea480c6dca8c913939778b24f 100644 (file)
@@ -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