fix file_test.sh for systems without rpm installed
If you run file_test.sh on a system without rpm installed, it should return tconf instead of tfail.
---
testcases/commands/ade/file/file_test.sh +6 -5
@@ -472,6 +472,8 @@ export TCID=file09 export TST_COUNT=9 $LTPBIN/tst_resm TINFO "TEST #9: file command recognizes RPM files" +`which rpm` +if [ $? = 0 ]; then if [ -f /etc/redhat-release ]; then bDIR=/usr/src/redhat bCMD=rpmbuild
@@ -574,6 +576,9 @@ else $LTPBIN/tst_resm TFAIL "file: Failed to recognize RPM file" TFAILCNT=$(( $TFAILCNT+1 )) fi +else + $LTPBIN/tst_resm TCONF "rpm not installed" +fi # TEST #10
@@ -582,11 +587,7 @@ fi export TCID=file10 export TST_COUNT=10 -if [ -f /etc/redhat-release ]; then - KERNEL=vmlinuz -else - KERNEL=vmlinux -fi +KERNEL=vmlinu $LTPBIN/tst_resm TINFO "TEST #10: file command recognizes $KERNEL file"
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 2 lines · On Wednesday 12 August 2009 17:13:11 Paul Larson wrote:
If you run
file_test.shon a system without rpm installed, it should return tconf instead of tfail.
this has the same problems as i mentioned with your mail_tests patch -mike
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list