From: SiliangYu <siliangx.yu@intel.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v4 LTP] Skip the test if "htop" is used.
Date: Tue, 10 Sep 2019 16:23:37 +0000 [thread overview]
Message-ID: <20190910162337.60664-1-siliangx.yu@intel.com> (raw)
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.
Signed-off-by: Yu,Siliang <siliangx.yu@intel.com>
---
.../kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh
index 18a11197e..74a3dd2b1 100755
--- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh
+++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh
@@ -49,6 +49,10 @@ done
LOOP_COUNT=1
+if top -v | grep -q htop; then
+ tst_brkm TCONF "htop is used instead of top, Skip the test(workaround: alias top='/path/to/real/top')"
+fi
+
if [ $(get_present_cpus_num) -lt 2 ]; then
tst_brkm TCONF "system doesn't have required CPU hotplug support"
fi
--
2.23.0
next reply other threads:[~2019-09-10 16:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-10 16:23 SiliangYu [this message]
2019-09-11 9:00 ` [LTP] [PATCH v4 LTP] Skip the test if "htop" is used Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190910162337.60664-1-siliangx.yu@intel.com \
--to=siliangx.yu@intel.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox