update log line matcher

This commit is contained in:
Simon Knott 2024-12-18 12:57:49 +01:00
parent 3b72c3b458
commit 411cf2928f
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -26,7 +26,7 @@ const CDNS = [
'https://playwright-verizon.azureedge.net',
];
const DL_STAT_BLOCK = /^.*from url: (.*)$\n^.*to location: (.*)$\n^.*response status code: (.*)$\n^.*total bytes: (\d+)$\n^.*download complete, size: (\d+)$\n^.*SUCCESS downloading (\w+) .*$/gm;
const DL_STAT_BLOCK = /^.*from url: (.*)$\n^.*to location: (.*)$\n^.*response status code: (.*)$\n^.*total bytes: (\d+)$\n^.*download complete, size: (\d+)$\n^.*SUCCESS downloading (?:and extracting )?(\w+) .*$/gm;
const parsedDownloads = (rawLogs: string) => {
const out: { url: string, status: number, name: string }[] = [];