summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-07-16 11:24:32 +0800
committerSteve Sakoman <steve@sakoman.com>2024-08-06 19:11:18 -0700
commit4aa7d1ea8712f0136a8777d6d384be7d00a4c1a2 (patch)
treed74ad833fc5db2757edb847eead0ab32711d75c5
parentdbfa6e67b2b1796129ab153e80d5da072bd15630 (diff)
downloadpoky-4aa7d1ea8712f0136a8777d6d384be7d00a4c1a2.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: 9563027c35a4b1961a83100e22d4ea4430abd8b9) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c5108da4009ccd3dfc92632171d6bc4dae4507db) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rwxr-xr-xmeta/recipes-rt/rt-tests/files/rt_bmark.py2
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)))