public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH LTP] - cpuhotplug06.sh:Add judgment for command "top".
@ 2019-07-19  4:06 Siliang, Yu
  2019-07-19 10:50 ` Zhang, Yixin
  0 siblings, 1 reply; 2+ messages in thread
From: Siliang, Yu @ 2019-07-19  4:06 UTC (permalink / raw)
  To: ltp

From: "Yu,Siliang" <siliangx.yu@intel.com>

Only on clear linux OS,"top" is a link file.
If it's clear linux,skip the test.

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..d5877d085 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 [[ -L "/usr/bin/top" ]];then
+        tst_brkm TCONF "Invalid argument on Clear Linux Skip the test..."
+fi
+
 if [ $(get_present_cpus_num) -lt 2 ]; then
 	tst_brkm TCONF "system doesn't have required CPU hotplug support"
 fi
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-19 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-19  4:06 [LTP] [PATCH LTP] - cpuhotplug06.sh:Add judgment for command "top" Siliang, Yu
2019-07-19 10:50 ` Zhang, Yixin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox