Correctly handle test metrics filenames for parallel runs
What does this MR do and why?
Fix metrics filename handling for save_test_metrics
method and improve the code around filename creation.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.