diff options
author | Changqing Li <changqing.li@windriver.com> | 2019-12-23 14:42:37 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-12-23 15:03:15 -0800 |
commit | 7c12e62bedea53400cc826e602197e2d1ff12625 (patch) | |
tree | a9abf4643d93dfc8e694490e9736715691b18a0b | |
parent | c05a6ab1e7b8f099b50ed0ce469bd427c597580d (diff) | |
download | meta-openembedded-7c12e62bedea53400cc826e602197e2d1ff12625.tar.gz |
libhugetlbfs: update patch to make it work for python3
Fix error:
TypeError: a bytes-like object is required, not 'str'
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch index 34a62207e..83934abef 100644 --- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch +++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch | |||
@@ -12,6 +12,9 @@ Signed-off-by: Ting Liu <b28495@freescale.com> | |||
12 | 12 | ||
13 | Update for 2.22. | 13 | Update for 2.22. |
14 | Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | 14 | Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> |
15 | |||
16 | Update to work for python3 | ||
17 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
15 | --- | 18 | --- |
16 | tests/run_tests.py | 12 +++++++++++- | 19 | tests/run_tests.py | 12 +++++++++++- |
17 | 1 file changed, 11 insertions(+), 1 deletion(-) | 20 | 1 file changed, 11 insertions(+), 1 deletion(-) |
@@ -36,7 +39,7 @@ index 018264d..0aabcd1 100755 | |||
36 | + return sizes | 39 | + return sizes |
37 | + except OSError: | 40 | + except OSError: |
38 | + return sizes | 41 | + return sizes |
39 | + out = p.stdout.read().strip() | 42 | + out = p.stdout.read().decode().strip() |
40 | + | 43 | + |
41 | if rc != 0 or out == "": | 44 | if rc != 0 or out == "": |
42 | return sizes | 45 | return sizes |