Re: [PATCH V2 1/2] selftests/cpu-hotplug: exit with failure when test occured unexpected behaviors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/13/2017 07:28 PM, Li Zhijian wrote:
> Previously, 'make run_tests -C cpu-hotplug' always PASS since cpu-on-off-test.sh
> always exits 0 even though the test got some unexpected errors like below:
> root@debian9:/home/lizhijian/chroot/linux/tools/testing/selftests/cpu-hotplug# make run_tests
> pid 878's current affinity mask: 1
> pid 878's new affinity mask: 1
> CPU online/offline summary:
> Cpus in online state: 0
>         Cpus in offline state: 0
> Limited scope test: one hotplug cpu
>         (leaves cpu in the original state):
>         online to offline to online: cpu 0
> ./cpu-on-off-test.sh: line 83: /sys/devices/system/cpu/cpu0/online: Permission denied
> offline_cpu_expect_success 0: unexpected fail
> ./cpu-on-off-test.sh: line 78: /sys/devices/system/cpu/cpu0/online: Permission denied
> online_cpu_expect_success 0: unexpected fail
> selftests: cpu-on-off-test.sh [PASS]
> 
> after this patch, the test will exit with failure once it occurs some unexpected behaviors
> 
> Signed-off-by: Li Zhijian <lizhijian@xxxxxxxxxxxxxx>

Applied to linux-kselftest next for 4.14-rc1

thanks,
-- Shuah
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux