On 11/12/2012 03:34 PM, [email protected] wrote: > From: Jin Li <[email protected]> > > Check whether sar is available befor run test
This is OK to me. Thanks, Wanlong Gao > > Signed-off-by: Jin Li <[email protected]> > --- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh > b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh > index ad57efe..e64b91c 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh > @@ -27,6 +27,11 @@ Desc: Does sar behave properly during CPU hotplug events? > > EOF > > +which sar > /dev/null 2>&1 || { > + tst_resm TCONF "sar does not exist" > + exit_clean 1 > +} > + > # Verify the specified CPU is available > if ! cpu_is_valid "${CPU_TO_TEST}" ; then > tst_resm TBROK"CPU${CPU_TO_TEST} not found" > ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
