All pass/fail checks are performed based on the exit value. So we may freely redirect all unused output to /dev/null.
And exportfs always returns 0, so there is no point to execute it at all. Signed-off-by: Stanislav Kholmanskikh <[email protected]> --- testscripts/isofs.sh | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/testscripts/isofs.sh b/testscripts/isofs.sh index 1335327..e4f3093 100755 --- a/testscripts/isofs.sh +++ b/testscripts/isofs.sh @@ -98,7 +98,7 @@ for mkisofs_opt in \ "-allow-lowercase -allow-multidot -iso-level 3 -f -l -D -J -L -R" do rm -f isofs.iso - mkisofs -o isofs.iso -quiet $mkisofs_opt $MAKE_FILE_SYS_DIR + mkisofs -o isofs.iso -quiet $mkisofs_opt $MAKE_FILE_SYS_DIR 2> /dev/null if [ $? -eq 0 ]; then tst_resm TPASS \ "mkisofs -o isofs.iso -quiet $mkisofs_opt $MAKE_FILE_SYS_DIR" @@ -128,9 +128,10 @@ do continue fi - ls -lR $MNT_POINT - exportfs -i -o no_root_squash,rw *:$MNT_POINT - exportfs -u :$MNT_POINT + ls -lR $MNT_POINT > /dev/null + if [ $? -ne 0 ]; then + tst_resm TFAIL "ls -lR $MNT_POINT" + fi umount $MNT_POINT if [ $? -ne 0 ]; then -- 1.7.1 ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
