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

Petr Vorel pvorel@suse.cz
Tue Aug 27 11:41:55 CEST 2019


> 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.

> 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