selftests/cpu-hotplug: Skip test when there is only one online cpu
authorLi Zhijian <lizhijian@cn.fujitsu.com>
Mon, 14 Aug 2017 01:28:16 +0000 (09:28 +0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 16 Aug 2017 23:48:18 +0000 (17:48 -0600)
commit86db9a11f39585e36978348410a01feb25e56be8
treec49f16950b0d689b0389679b1d2fbb23bda0436e
parent8fe6e53a8ed5f043ff4e6a366ebb3a641114546b
selftests/cpu-hotplug: Skip test when there is only one online cpu

For only one online cpu case, 'make run_tests' try to offline the cpu0 that will
always fail since the host can't offline this unique online cpu.

this patch will skip the test to avoid this failure.

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh