Closed vkarak closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 86.63%. Comparing base (
3932f25
) to head (bd0e2aa
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I hit this subtle and nasty bug while working on the new tutorial. It is exposed more easily now that the variables and parameters are by default loggable. The problem is the following:
When a series of tests that define different variables is set, ReFrame's logging will crash with an error like this:
The problem was that the message's format was calculated once from the
check_#ALL
special placeholder, so when trying to format the message from another test with different variables, it would cause this crash. I have added a unit test that reproduces this error exactly.This PR fixes this problem by keeping the expanded format strings for each test. Also, it fixes a similar problem that was causing ReFrame to generate wrong perflog headers for subsequent tests.