Andrew Cooper writes ("Re: [XTF PATCH 3/3] xtf-runner: support two modes for 
getting output"):
> Can't you just open the log file as read, seek to the end, run the test
> and read again from the same FD?  It would be rather more simple than
> marking the logs.

This is a good suggestion, I think.  Much better than mine in my other
email.

> Sadly, whatever method we use here is going to have to be clever enough
> to cope with the log files being rotated, and I can't think of a clever
> way of doing that ATM.

In an automatic test system the logfiles won't get big enough to be
rotated.  In a manual setup this is just a "random hazard" which you
seem to be prepared to accept...

But: it is easy for the runner to see if the logfile was rotated.  It
can open the logfile a second time and check if it has the same inum.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to