|
From: <iye...@us...> - 2003-01-06 22:11:44
|
Update of /cvsroot/ltp/ltp/testcases/commands/eject
In directory sc8-pr-cvs1:/tmp/cvs-serv12605
Modified Files:
eject-tests.sh
Log Message:
close the tray after the tests are done.
Index: eject-tests.sh
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/commands/eject/eject-tests.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- eject-tests.sh 6 Jan 2003 20:49:35 -0000 1.7
+++ eject-tests.sh 6 Jan 2003 22:11:35 -0000 1.8
@@ -105,6 +105,8 @@
eject &>$LTPTMP/tst_eject.res || RC=$?
if [ $RC -eq 0 ]
then
+ # Close the tray if it is supported.
+ eject -t &>/dev/null
$LTPBIN/tst_resm TPASS "Test #2: eject succeded"
else
echo "Error code returned by eject: $RC" >> $LTPTMP/tst_eject.res \
@@ -191,5 +193,6 @@
#CLEANUP & EXIT
# remove all the temporary files created by this test.
rm -fr $LTPTMP/tst_eject* $LTPTMP/cdrom
+eject -t &>/dev/null
exit $TFAILCNT
|