diff options
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch')
-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 |