Hi, On 2015/4/27 22:23, Cyril Hrubis wrote: >> +# Return - zero on success >> +# - non zero on failure. return value from commands ($RC) >> + >> +test02() >> +{ >> + RC=0 # Return value from commands. >> + export TCID=mv02 # Name of the test case. >> + export TST_COUNT=1 # Test number. > > The TCID and TST_COUNT should be initialized only once in the test. > I write test02() following gzip/gzip_tests.sh. gzip_tests.sh initialize the TCID and TST_COUNT thrice (in init、test01 and test02 functione). I followed this format and initialized the TCID and TST_COUNT in test02().
>> # Function: main >> # >> @@ -258,6 +333,15 @@ then >> TFAILCNT=$(($TFAILCNT+1)) >> fi >> >> +rm -fr $LTPTMP/tst_mv.* > > We have tst_tmpdir() and tst_rmdir() to simplify this. > The case does not use test.sh library and can't call tst_tmpdir() there. The mv_test.sh was written long before.Maybe I should modity it by using test.sh library, what do you think? Thanks, Cui Bixuan ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list