function getData(testName, reportPaths, callback) {
var testData = [];
reportPaths.forEach((report) => {
getTestByName(report, testName, function(testInfo) {
if (!testData[report])
testData[report] = [];
testData[report].push(testInfo);
});
});
callback(testData);
}
ZnVuY3Rpb24gZ2V0RGF0YSh0ZXN0TmFtZSwgcmVwb3J0UGF0aHMsIGNhbGxiYWNrKSB7Cgl2YXIgdGVzdERhdGEgPSBbXTsKCXJlcG9ydFBhdGhzLmZvckVhY2goKHJlcG9ydCkgPT4gewoJCWdldFRlc3RCeU5hbWUocmVwb3J0LCB0ZXN0TmFtZSwgZnVuY3Rpb24odGVzdEluZm8pIHsKCQkJaWYgKCF0ZXN0RGF0YVtyZXBvcnRdKQoJCQkJdGVzdERhdGFbcmVwb3J0XSA9IFtdOwoJCQl0ZXN0RGF0YVtyZXBvcnRdLnB1c2godGVzdEluZm8pOwoJCX0pOwoJfSk7CgkKCWNhbGxiYWNrKHRlc3REYXRhKTsKfQ==