diff options
author | Changqing Li <changqing.li@windriver.com> | 2024-07-16 11:24:32 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-30 12:32:53 +0100 |
commit | 2ccc2a77b5030c350e0764d0e7ae326c0b9425dd (patch) | |
tree | b75492c9e785bea7ec573518f463a6882403e273 | |
parent | 56b6b35626a96d6e5f853975bbe17c3d0294b825 (diff) | |
download | poky-2ccc2a77b5030c350e0764d0e7ae326c0b9425dd.tar.gz |
rt-tests: rt_bmark.py: fix TypeError
Fix following error:
File "/usr/lib64/rt-tests/ptest/./rt_bmark.py", line 287, in run_cyclictest_once
m = rex.search(line)
^^^^^^^^^^^^^^^^
TypeError: cannot use a string pattern on a bytes-like object
(From OE-Core rev: c5108da4009ccd3dfc92632171d6bc4dae4507db)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 2a4eed412f..5d22623656 100755 --- a/meta/recipes-rt/rt-tests/files/rt_bmark.py +++ b/meta/recipes-rt/rt-tests/files/rt_bmark.py | |||
@@ -284,7 +284,7 @@ def run_cyclictest_once(): | |||
284 | avg_cnt = 0 | 284 | avg_cnt = 0 |
285 | 285 | ||
286 | for line in res.splitlines(): | 286 | for line in res.splitlines(): |
287 | m = rex.search(line) | 287 | m = rex.search(line.decode('utf-8')) |
288 | if m is not None: | 288 | if m is not None: |
289 | minlist.append(int(m.group(2))) | 289 | minlist.append(int(m.group(2))) |
290 | maxlist.append(int(m.group(4))) | 290 | maxlist.append(int(m.group(4))) |