jenkinsci / jenkins-test-harness

Unit test framework for Jenkins core and its plugins
https://www.jenkins.io/doc/developer/testing/
MIT License
109 stars 126 forks source link

`TailLog` to support reopened files #835

Closed jglick closed 4 weeks ago

jglick commented 1 month ago

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.)