ping

On 7/16/24 11:24, Changqing Li via lists.openembedded.org wrote:
From: Changqing Li<[email protected]>

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

Signed-off-by: Changqing Li<[email protected]>
---
  meta/recipes-rt/rt-tests/files/rt_bmark.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

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():
          avg_cnt = 0
for line in res.splitlines():
-                m = rex.search(line)
+                m = rex.search(line.decode('utf-8'))
                  if m is not None:
                          minlist.append(int(m.group(2)))
                          maxlist.append(int(m.group(4)))



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#202513): 
https://lists.openembedded.org/g/openembedded-core/message/202513
Mute This Topic: https://lists.openembedded.org/mt/107246061/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to