diff options
| author | Xiangyu Chen <xiangyu.chen@windriver.com> | 2023-01-19 13:24:26 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-04 23:32:20 +0000 |
| commit | 1fab7be93104906687e60d48e147c918e768c23e (patch) | |
| tree | b451d85edeaa5c6c6045b5b89d62311b7a5161de | |
| parent | cc82bf667c92d9e6004fbd4a5f36d85b033a9d4b (diff) | |
| download | poky-1fab7be93104906687e60d48e147c918e768c23e.tar.gz | |
numactl: skip test case when target platform doesn't have 2 CPU node
when current test platform doesn't have 2 or more CPU node, the test
case would report FAIL, according to numa test script and numademo
code, when return code=77 should be skip test, so using SKIP instead
of FAIL in test script.
(From OE-Core rev: 218cf38bd3879df009e70f516c0dcb484376bf2e)
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fd0a82400d419bce8605a9445db9b20b8ddc01a7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/numactl/numactl/Fix-the-test-output-format.patch | 3 | ||||
| -rwxr-xr-x | meta/recipes-support/numactl/numactl/run-ptest | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-support/numactl/numactl/Fix-the-test-output-format.patch b/meta/recipes-support/numactl/numactl/Fix-the-test-output-format.patch index 9812ecc8b3..a7bc8d322e 100644 --- a/meta/recipes-support/numactl/numactl/Fix-the-test-output-format.patch +++ b/meta/recipes-support/numactl/numactl/Fix-the-test-output-format.patch | |||
| @@ -7,6 +7,7 @@ Upstream-Status: Pending | |||
| 7 | 7 | ||
| 8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | 8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 9 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | 9 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> |
| 10 | Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> | ||
| 10 | --- | 11 | --- |
| 11 | test/regress | 6 +++--- | 12 | test/regress | 6 +++--- |
| 12 | test/regress2 | 11 +++++------ | 13 | test/regress2 | 11 +++++------ |
| @@ -20,7 +21,7 @@ index 2ce1705..d086a47 100755 | |||
| 20 | if [ $numnodes -lt 2 ] ; then | 21 | if [ $numnodes -lt 2 ] ; then |
| 21 | echo "need at least two nodes with at least $NEEDPAGES each of" | 22 | echo "need at least two nodes with at least $NEEDPAGES each of" |
| 22 | echo "free memory for mempolicy regression tests" | 23 | echo "free memory for mempolicy regression tests" |
| 23 | + echo "FAIL: numa regress" | 24 | + echo "SKIP: numa regress" |
| 24 | exit 77 # Skip test | 25 | exit 77 # Skip test |
| 25 | fi | 26 | fi |
| 26 | } | 27 | } |
diff --git a/meta/recipes-support/numactl/numactl/run-ptest b/meta/recipes-support/numactl/numactl/run-ptest index bf269da755..e019b0d364 100755 --- a/meta/recipes-support/numactl/numactl/run-ptest +++ b/meta/recipes-support/numactl/numactl/run-ptest | |||
| @@ -8,7 +8,11 @@ if ! numactl -s | grep -q "No NUMA support available on this system."; then | |||
| 8 | if numademo -t -e 10M; then | 8 | if numademo -t -e 10M; then |
| 9 | echo "PASS: numademo" | 9 | echo "PASS: numademo" |
| 10 | else | 10 | else |
| 11 | echo "FAIL: numademo" | 11 | if [ "$?" = 77 ] ; then |
| 12 | echo "SKIP: numademo" | ||
| 13 | else | ||
| 14 | echo "FAIL: numademo" | ||
| 15 | fi | ||
| 12 | fi | 16 | fi |
| 13 | else | 17 | else |
| 14 | echo "SKIP: ./../test/bind_range" | 18 | echo "SKIP: ./../test/bind_range" |
