Yea,
        It's tricky I found that out (thus the absolute path). I expect the more "rational" thing might be to have pan open the log file(s) before changing to it's tmp directory.
        j


Jay Huie
 wjhuie@us.ibm.com
 zSeries Linux System Test
 Phone: 845-435-8164

Sent by:        ltp-list-admin@lists.sourceforge.net

To:        "V.R.Sundar" <vr_sundar@attbi.com>
cc:        ltp-list@lists.sourceforge.net
Subject:        Re: [LTP] Re: results comparator? (Dan Kegel)



V.R.Sundar wrote:
> On Mon, 2003-01-27 at 10:27, William Jay Huie wrote:
>
>><snip>
>>        ltprun calls runalltests.sh with the appropriate parameters.
>>                ./runalltests.sh -l ~/ltp/$LTP_LOGFILE &>
>>$LTP_RUNALL_OUT
>><snip>
>
>
> Ok. Found the difference. I was running it as:
> ./runalltests.sh -l ltp.log
> The difference being you were giving a full path. The script
> runalltests.sh creates and moves to a temp directory before running pan
> and then deletes it at the end. So the log file was created there and
> then deleted.

It might be helpful to add a check in runalltests.sh to abort if
-l is given a nonabsolute path, e.g.

case $log in
*/*) ;;
*) echo "absolute path required"; exit 1 ;;
esac

(Alternately, to use crap like
logdir=`dirname $log`
logdir=`cd $logdir; pwd`
log=$logdir/`basename $log`
to convert the logfile name to an absolute path... that's going a bit too far, though...)

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/ltp-list