From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Yang Date: Tue, 27 Aug 2019 18:15:37 +0800 Subject: [LTP] [PATCH v3 LTP] Skip the test if "htop" is used. In-Reply-To: <20190827094154.GA32175@dell5510> References: <20190814091545.147098-1-siliangx.yu@intel.com> <20190827094154.GA32175@dell5510> Message-ID: <5D6502C9.9040805@cn.fujitsu.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On 2019/08/27 17:41, Petr Vorel wrote: >> From: "Yu,Siliang" >> 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 > Acked-by: Petr Vorel > >> .../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 >