jenkinsci / jenkins-test-harness

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

`TailLog` to support reopened files #835

Closed jglick closed 2 months ago

jglick commented 2 months 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.)