mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: prepare flakiness dashboard cloud function to Android tests (#6129)
This commit is contained in:
parent
09c175914e
commit
0c00891b80
@ -63,11 +63,15 @@ function compressReports(reports) {
|
||||
// In our case, all data will be identical - so pick
|
||||
// from the first result.
|
||||
const testParameters = test.results[0].data;
|
||||
// Overwrite test platform parameter with a more specific information from
|
||||
// build run.
|
||||
const osName = report.metadata.osName.toUpperCase().startsWith('MINGW') ? 'Windows' : report.metadata.osName;
|
||||
const arch = report.metadata.arch && !report.metadata.arch.includes('x86') ? report.metadata.arch : '';
|
||||
const platform = (osName + ' ' + report.metadata.osVersion + ' ' + arch).trim();
|
||||
// Prefer test platform when it exists, and fallback to
|
||||
// the host platform when it doesn't. This way we can attribute
|
||||
// android tests to android.
|
||||
let platform = testParameters.platform;
|
||||
if (!platform) {
|
||||
const osName = report.metadata.osName.toUpperCase().startsWith('MINGW') ? 'Windows' : report.metadata.osName;
|
||||
const arch = report.metadata.arch && !report.metadata.arch.includes('x86') ? report.metadata.arch : '';
|
||||
platform = (osName + ' ' + report.metadata.osVersion + ' ' + arch).trim();
|
||||
}
|
||||
const browserName = testParameters.browserName || 'N/A';
|
||||
|
||||
const testName = getTestName(browserName, platform, testParameters);
|
||||
|
Loading…
x
Reference in New Issue
Block a user