Get size of the log file immediately before main test action to avoid capturing messages written to log during environment preparation. Fixes https://pagure.io/freeipa/issue/8987 Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>