I have some RealJenkinsRule tests which involve recreation of the build log file, but the default implementation of Tailer seems to be bound to an open file handle and thus does not notice any new content. Opening the file each time is of course less efficient but this utility is typically used only on very small log files in otherwise expensive tests so it should not matter. (Extracted from #827.)
I have some
RealJenkinsRule
tests which involve recreation of the buildlog
file, but the default implementation ofTailer
seems to be bound to an open file handle and thus does not notice any new content. Opening the file each time is of course less efficient but this utility is typically used only on very small log files in otherwise expensive tests so it should not matter. (Extracted from #827.)