Skip to content

Instantly share code, notes, and snippets.

@juliandescottes
Created January 4, 2018 17:39
Show Gist options
  • Save juliandescottes/b6ad6a525e965a745cceb0b1e5ddba3e to your computer and use it in GitHub Desktop.
Save juliandescottes/b6ad6a525e965a745cceb0b1e5ddba3e to your computer and use it in GitHub Desktop.
Small script to get the list of tests that were executed in a try run
async function getTestList(logUrl) {
let log = await fetch(logUrl);
let logText = await log.text();
let lines = logText.split("\n");
lines = lines
.filter(l => l.includes("TEST-START"))
.filter(l => !l.includes("Shutdown"))
.map(l => l.match(/TEST-START \| ([^\s]+)/)[1]);
console.log(lines);
}
getTestList("https://public-artifacts.taskcluster.net/X5kX9lNMTb27GBSLWg6X9Q/0/public/logs/live_backing.log");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment