summaryrefslogtreecommitdiffstats
path: root/sanity
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2012-03-07 16:05:49 +0530
committerRaghavendra Bhat <raghavendrabhat@gluster.com>2012-03-07 16:07:13 +0530
commit172fef9be01b0ab6a3460fef62bbee960fa3a0a9 (patch)
treec69ebe31630c45416a0b7e3ee92431141b6906ac /sanity
parentb97a5bfcdf40bbf79173578172405235649c8829 (diff)
sanity/system_light: print the failed tool name in the failed tests file
Also make changes to take mount type as argument Change-Id: Ie13d014dbacf5063f0c505d733c30a999c56deb7 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Diffstat (limited to 'sanity')
-rwxr-xr-xsanity/system_light/config2
-rwxr-xr-xsanity/system_light/run.sh11
2 files changed, 8 insertions, 5 deletions
diff --git a/sanity/system_light/config b/sanity/system_light/config
index 91422eb..0d95bcf 100755
--- a/sanity/system_light/config
+++ b/sanity/system_light/config
@@ -15,7 +15,7 @@ export DECISION="n"
export TYPE="other"
export TEST="all"
-while getopts 'w:t:l:D' option
+while getopts 'w:t:l:D:m' option
do
case $option in
w)
diff --git a/sanity/system_light/run.sh b/sanity/system_light/run.sh
index 93852db..b8061c8 100755
--- a/sanity/system_light/run.sh
+++ b/sanity/system_light/run.sh
@@ -6,7 +6,10 @@ _init ()
set +x
set -u;
basedir=$(dirname $0);
- SCRIPTS_PATH=$basedir/scripts;
+ name=$(basename $0);
+ abs=$(cd "$(dirname "$0")"; pwd)
+ SCRIPTS_PATH=$abs/scripts;
+ echo $abs;
#SCRIPTS_PATH="/opt/qa/tools/system_light/scripts"
CNT=0
. $basedir/config;
@@ -35,17 +38,17 @@ function run_tests ()
CNT=$((CNT+1))
echo $CNT
else
- echo "$tool failed"
+ echo "$tool failed" | tee -a $TEST_FAIL
echo $CNT
fi
return 0;
else
- echo "tool $tool is not there in the script directory. Exiting";
+ echo "tool $tool is not there in the script directory $SCRIPTS_PATH. Exiting";
return 22;
fi
fi
- for i in $(ls $SCRIPTS_PATH | sort -n) #grep "^[0-9]*$" |
+ for i in $(ls $SCRIPTS_PATH | sort -n)
do
if [ -f $SCRIPTS_PATH/$i/$i.sh ]; then
run_tests $i;