From 74af774604672dd81587cd3035d8243251a066d5 Mon Sep 17 00:00:00 2001
From: look <eeslook@163.com>
Date: Fri, 11 Apr 2014 09:29:08 +0800
Subject: [PATCH] fix sar command error for testscripts/ltpstress.sh file,
 remove not support args "0" for sar, and redirect sar
 output to /dev/null

---
 testscripts/ltpstress.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testscripts/ltpstress.sh b/testscripts/ltpstress.sh
index 49fc5a2..6ebafe6 100755
--- a/testscripts/ltpstress.sh
+++ b/testscripts/ltpstress.sh
@@ -254,7 +254,7 @@ ${LTPROOT}/bin/rand_lines -g ${LTPROOT}/runtest/stress.part3 > ${TMP}/stress.par
 sleep 2
 
 if [ $Sar -eq 1 ]; then
-  sar -o $datafile $interval 0 &
+  sar -o $datafile $interval > /dev/null &
 fi
 
 if [ $Top -eq 1 ]; then
-- 
1.7.4.4

