Part of lp.buildmaster.tests
Class | TestSlaveScannerScan | Tests SlaveScanner.scan method. |
Class | TestSlaveScannerWithLibrarian | Undocumented |
Class | TestPrefetchedBuilderFactory | Undocumented |
Class | TestSlaveScannerWithoutDB | Undocumented |
Class | TestJudgeFailure | Undocumented |
Class | TestCancellationChecking | Unit tests for the checkCancellation method. |
Class | TestBuilddManager | Undocumented |
Class | TestFailureAssessments | Undocumented |
Class | TestNewBuilders | Test detecting of new builders. |
Function | is_file_growing | Poll the file size to see if it grows. |
Class | TestBuilddManagerScript | Undocumented |
Checks the size of the file in given intervals and returns True as soon as it sees the size increase between two polls. If the size does not increase after a given number of polls, the function returns False. If the file does not exist, the function silently ignores that and waits for it to appear on the next pall. If it has not appeared by the last poll, the exception is propagated. Program execution is blocked during polling.
Parameters | filepath | The path to the file to be palled. |
poll_interval | The number of seconds in between two polls. | |
poll_repeat | The number times to repeat the polling, so the size is polled a total of poll_repeat+1 times. The default values create a total poll time of 11 seconds. The BuilddManager logs "scanning cycles" every 5 seconds so these settings should see an increase if the process is logging to this file. |