[LNT] Fix profile assigning to tests
report.json may contain the following content:
“Tests”: [
{“Data”: [ 123 ], “Name”: “nts.SomeTest.test:subTest1.exec”},
{“Data”: [ 456 ], “Name”: “nts.SomeTest.test:subTest2.exec”},
{“Data”: [ “base64_encoded_profile_data” ], “Name”: “nts.SomeTest.profile”}
]
This report.json contains 2 tests (execution_time) and 1 profile data which must be assigned to both tests.
Currently LNT creates 3 tests. First 2 tests do not have a profile data. 3rd test does not have any metric, but has the profile data.
This patch implements the correct processing such reports.
OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg
Reviewed By: thopre
Differential Revision: https://reviews.llvm.org/D115702