APPLIED: [X][SRU][PATCH 0/1] selftests/cpu-hotplug: exit with failure when test occured unexpected behaviors
Khaled Elmously
khalid.elmously at canonical.com
Thu Jan 10 02:29:38 UTC 2019
On 2018-12-25 18:41:47 , Po-Hsu Lin wrote:
> BugLink: https://bugs.launchpad.net/bugs/1809699
>
> == SRU Justification ==
> This cpu-hotplug test will always return PASSED even if there are some failures there:
>
> $ sudo make -C linux/tools/testing/selftests TARGETS=cpu-hotplug run_tests
> make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
> for TARGET in cpu-hotplug; do \
> make -C $TARGET; \
> done;
> make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/cpu-hotplug'
> make[1]: Nothing to be done for 'all'.
> make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/cpu-hotplug'
> for TARGET in cpu-hotplug; do \
> make -C $TARGET run_tests; \
> done;
> make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/cpu-hotplug'
> pid 25001's current affinity mask: 3
> pid 25001's new affinity mask: 1
> CPU online/offline summary:
> Cpus in online state: 0-1
> Cpus in offline state: 2
> Limited scope test: one hotplug cpu
> (leaves cpu in the original state):
> online to offline to online: cpu 1
> offline to online to offline: cpu 2
> ./cpu-on-off-test.sh: line 78: /sys/devices/system/cpu/cpu2/online: No such file or directory
> online_cpu_expect_success 2: unexpected fail
> ./cpu-on-off-test.sh: line 83: /sys/devices/system/cpu/cpu2/online: No such file or directory
> offline_cpu_expect_success 2: unexpected fail
> selftests: cpu-on-off-test.sh [PASS]
> make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/cpu-hotplug'
> make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
>
> == Fixes ==
> 8fe6e53a8ed5f0 (selftests/cpu-hotplug: exit with failure when test occured unexpected behaviors)
>
> For newer releases, they already have this patch.
> For Trusty and older release, they will need more work to get this patch.
>
> == Regression Potential ==
> None, fix for testing tools.
>
>
> Li Zhijian (1):
> selftests/cpu-hotplug: exit with failure when test occured unexpected
> behaviors
>
> tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> --
> 2.7.4
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list