rt_bmark.py: fix TypeError
PATCH 1/1 rt_bmark.py: fix TypeError
From: Libo Chen <[email protected]>
Upstream-Status: Inappropriate [oe-core specific]
--- rt_bmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rt_bmark.py +1 -1
@@ -268,7 +268,7 @@ cmd = ("cyclictest", rex = re.compile(r"C:\s*(\d+).*Min:\s*(\d+).*Avg:\s*(\d+).*Max:\s*(\d+)") def run_cyclictest_once(): - res = subprocess.check_output(cmd) + res = subprocess.check_output(cmd, encoding='utf-8') # minlist and maxlist are lists with the extremes for each core # avg_cnt is the sum of cycles for all cores
Signature · 1 line
2.25.1
Quoted 10 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Chen, Libo (CN) via lists.openembedded.org
Sent: den 11 november 2024 04:52
To: [email protected]
Subject: [OE-core] [PATCH]rt_bmark.py: fix TypeErrorFrom: Libo Chen <[email protected]>
Upstream-Status: Inappropriate [oe-core specific]
Upstream-Status is used in patch files that are part of the layer.
Here you would typically include some motivation for the change, such as an error message and the conditions for the error to occur.
rt_bmark.py
Quoted 10 lines
Signed-off-by Libo Chen <[email protected]>--- rt_bmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)rt_bmark.py +0
-0
There is no rt_bmark.py at the top of the openembedded-core repository. Some searching revealed that the actual path for rt_bmark.py is "meta/recipes-rt/rt-tests/files/rt_bmark.py". This is the path that the patch should use or it is not possible to apply it. It is also the path that git format-patch would generate unless you give it some extra option like --relative, which you should not do.
Quoted 11 lines
rt_bmark.py +1
-2@@ -268,7 +268,7 @@ cmd = ("cyclictest", rex = re.compile(r"C:\s*(\d+).*Min:\s*(\d+).*Avg:\s*(\d+).*Max:\s*(\d+)") def run_cyclictest_once(): - res = subprocess.check_output(cmd) + res = subprocess.check_output(cmd, encoding='utf-8') # minlist and maxlist are lists with the extremes for each core # avg_cnt is the sum of cycles for all cores --2.25.1
//Peter