mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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: fd0a82400d419bce8605a9445db9b20b8ddc01a7) 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>
This commit is contained in:
committed by
Richard Purdie
parent
cbb8a79bc9
commit
05fac8d648
@@ -7,6 +7,7 @@ Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Roy Li <rongqing.li@windriver.com>
|
||||
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
|
||||
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
|
||||
---
|
||||
test/regress | 6 +++---
|
||||
test/regress2 | 11 +++++------
|
||||
@@ -20,7 +21,7 @@ index 2ce1705..d086a47 100755
|
||||
if [ $numnodes -lt 2 ] ; then
|
||||
echo "need at least two nodes with at least $NEEDPAGES each of"
|
||||
echo "free memory for mempolicy regression tests"
|
||||
+ echo "FAIL: numa regress"
|
||||
+ echo "SKIP: numa regress"
|
||||
exit 77 # Skip test
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -8,7 +8,11 @@ if ! numactl -s | grep -q "No NUMA support available on this system."; then
|
||||
if numademo -t -e 10M; then
|
||||
echo "PASS: numademo"
|
||||
else
|
||||
echo "FAIL: numademo"
|
||||
if [ "$?" = 77 ] ; then
|
||||
echo "SKIP: numademo"
|
||||
else
|
||||
echo "FAIL: numademo"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "SKIP: ./../test/bind_range"
|
||||
|
||||
Reference in New Issue
Block a user