[LTP] [PATCH v3 LTP] Skip the test if "htop" is used.

Xiao Yang yangx.jy@cn.fujitsu.com
Tue Aug 27 12:15:37 CEST 2019


On 2019/08/27 17:41, Petr Vorel wrote:
>> From: "Yu,Siliang"<siliangx.yu@intel.com>
>> In clear linux os, "htop" is used instead "top", which doesn't support '-b'. Skip the test on clear linux.
> There is a bug report in Clear Linux OS [1]:
> original top program is named top2, maybe it'd make sense to test for it as well.
Hi,

Is the silly rename going to be changed by Clear Linux in future?

If yes, we may keep cpuhotplug06.sh to detect the issue.
If no, we may update cpuhotplug06.sh to use top2 if top is provided by 
htop.

Best Regards,
Xiao Yang
>> Signed-off-by: Yu,Siliang<siliangx.yu@intel.com>
> Acked-by: Petr Vorel<pvorel@suse.cz>
>
>>   .../kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh     | 4 ++++
> ...
>
>> +if top -v | grep -q htop; then
>> +	tst_brkm TCONF "htop is used instead of top, Skip the test..."
> 	tst_brkm TCONF "htop is used instead of top, skip the test"
> ...
>
> Kind regards,
> Petr
>
> [1] https://github.com/clearlinux/distribution/issues/277#issuecomment-442340322
>





More information about the ltp mailing list