diff options
author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2024-02-10 14:15:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-13 13:51:41 +0000 |
commit | 83d5c123d3c509f6ad00492b4f00f73474e89842 (patch) | |
tree | 8ed6d806ec88a0dde6645da72c91b811fe46af81 /meta/recipes-rt/rt-tests | |
parent | fe58da13930638037283f9a96fc103835b15f919 (diff) | |
download | poky-83d5c123d3c509f6ad00492b4f00f73474e89842.tar.gz |
meta/recipes: python 3.12 regex
Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.
(From OE-Core rev: f2d80817baea298b953d6e14daad65087b3b50c9)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-rt/rt-tests')
-rwxr-xr-x | meta/recipes-rt/rt-tests/files/rt_bmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-rt/rt-tests/files/rt_bmark.py b/meta/recipes-rt/rt-tests/files/rt_bmark.py index 3b84447a0f..2a4eed412f 100755 --- a/meta/recipes-rt/rt-tests/files/rt_bmark.py +++ b/meta/recipes-rt/rt-tests/files/rt_bmark.py | |||
@@ -265,7 +265,7 @@ cmd = ("cyclictest", | |||
265 | "-d", str(interval_delta), | 265 | "-d", str(interval_delta), |
266 | "-l", str(loop_count) | 266 | "-l", str(loop_count) |
267 | ) | 267 | ) |
268 | rex = re.compile(b"C:\s*(\d+).*Min:\s*(\d+).*Avg:\s*(\d+).*Max:\s*(\d+)") | 268 | rex = re.compile(r"C:\s*(\d+).*Min:\s*(\d+).*Avg:\s*(\d+).*Max:\s*(\d+)") |
269 | 269 | ||
270 | def run_cyclictest_once(): | 270 | def run_cyclictest_once(): |
271 | res = subprocess.check_output(cmd) | 271 | res = subprocess.check_output(cmd) |