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 | 13 |
1 files changed, 9 insertions, 4 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 53f35abb7b..34a62207ec 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 | |||
@@ -10,15 +10,17 @@ Upstream-Status: Submitted | |||
10 | 10 | ||
11 | Signed-off-by: Ting Liu <b28495@freescale.com> | 11 | Signed-off-by: Ting Liu <b28495@freescale.com> |
12 | 12 | ||
13 | Update for 2.22. | ||
14 | Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | ||
13 | --- | 15 | --- |
14 | tests/run_tests.py | 12 +++++++++++- | 16 | tests/run_tests.py | 12 +++++++++++- |
15 | 1 file changed, 11 insertions(+), 1 deletion(-) | 17 | 1 file changed, 11 insertions(+), 1 deletion(-) |
16 | 18 | ||
17 | diff --git a/tests/run_tests.py b/tests/run_tests.py | 19 | diff --git a/tests/run_tests.py b/tests/run_tests.py |
18 | index 3c95a03..560df6b 100755 | 20 | index 018264d..0aabcd1 100755 |
19 | --- a/tests/run_tests.py | 21 | --- a/tests/run_tests.py |
20 | +++ b/tests/run_tests.py | 22 | +++ b/tests/run_tests.py |
21 | @@ -234,9 +234,19 @@ def get_pagesizes(): | 23 | @@ -245,9 +245,19 @@ def get_pagesizes(): |
22 | Use libhugetlbfs' hugeadm utility to get a list of page sizes that have | 24 | Use libhugetlbfs' hugeadm utility to get a list of page sizes that have |
23 | active mount points and at least one huge page allocated to the pool. | 25 | active mount points and at least one huge page allocated to the pool. |
24 | """ | 26 | """ |
@@ -36,6 +38,9 @@ index 3c95a03..560df6b 100755 | |||
36 | + return sizes | 38 | + return sizes |
37 | + out = p.stdout.read().strip() | 39 | + out = p.stdout.read().strip() |
38 | + | 40 | + |
39 | if rc != 0 or out == "": return sizes | 41 | if rc != 0 or out == "": |
42 | return sizes | ||
40 | 43 | ||
41 | for size in out.split("\n"): sizes.add(int(size)) | 44 | -- |
45 | 2.7.4 | ||
46 | |||