Subrata,
Now this script returns proper exit code , in the event of
failure/success. I have verified this.
Thanks for pointing out .
Thanks Veerendra for resending the Patch. Since i have already applied
the earlier patch (with my modifications), so, can you please just send
me the changes for:
testscripts/test_robind.sh
Just take a diff from the latest LTP-CVS.
Regards--
Subrata
Regards
Veerendra C
Subrata
As requested, here is the patch on the latest diff. This fixes the
retcode , on errors .
Regards
Index: ltp-full-20080731/testscripts/test_robind.sh
===================================================================
--- ltp-full-20080731.orig/testscripts/test_robind.sh
+++ ltp-full-20080731/testscripts/test_robind.sh
@@ -187,6 +187,7 @@ function testdir
if [ $status == 1 ] ; then
echo "RO-FileSystem Tests FAILED for $dir $fs filesystem" >> $FAILLOG
echo >> $FAILLOG
+ retcode=$status
else
echo "RO-FileSystem Tests PASSed for $dir $fs filesystem" >> $PASSLOG
echo >> $PASSLOG
@@ -202,6 +203,7 @@ function testdir
# See the description, purpose, and design of this test under TEST
# in this test's prolog.
#=============================================================================
+retcode=0
while getopts h: OPTION; do
case $OPTION in
h)
@@ -228,7 +230,6 @@ for fstype in $FSTYPES; do
tst_resm, TFAIL "Free Disk space of 512MB is required in /tmp fs"
tst_resm, TFAIL "Please free it and rerun thank you.."
rm -f $image
- sleep 2
exit -1
fi
@@ -246,9 +247,9 @@ for fstype in $FSTYPES; do
fi
mount -t $fstype -o loop $image dir1
- mount --bind dir1 dir2-bound || exit
- mount --bind dir1 dir3-ro || exit
- mount -o remount,ro dir3-ro || exit
+ mount --bind dir1 dir2-bound || exit -1
+ mount --bind dir1 dir3-ro || exit -1
+ mount -o remount,ro dir3-ro || exit -1
testdir dir1 $fstype false
testdir dir2-bound $fstype false
@@ -260,4 +261,5 @@ done
rm -rf ./$i || true
done;
cd $oldpwd || true
-
+ exit $retcode
+
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list