Skip to content

Commit

Permalink
Bug 1517264 - Treat wrench jobs as reftests. (#4412)
Browse files Browse the repository at this point in the history
Wrench jobs are a job type for the standalone WebRender test suite, and
run reftests as part of the job. Having reftest-ish things like the
reftest analyzer links for these jobs is desirable.
  • Loading branch information
staktrace authored and Cameron Dawson committed Jan 3, 2019
1 parent fb7cd39 commit ebe9db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/ui/unit/react/bugfiler.tests.jsx
Expand Up @@ -15,6 +15,7 @@ describe('BugFiler', () => {
const selectedJob = {
job_group_name: 'Mochitests executed by TaskCluster',
job_type_name: 'test-linux64/debug-mochitest-browser-chrome-10',
job_type_symbol: 'bc10',
};
const suggestions = [
{ search: 'ShutdownLeaks | process() called before end of test suite' },
Expand Down
6 changes: 4 additions & 2 deletions ui/helpers/job.js
Expand Up @@ -54,8 +54,10 @@ export const getJobBtnClass = function getJobBtnClass(job) {
};

export const isReftest = function isReftest(job) {
return [job.job_group_name, job.job_type_name].some(name =>
name.toLowerCase().includes('reftest'),
return (
[job.job_group_name, job.job_type_name].some(name =>
name.toLowerCase().includes('reftest'),
) || job.job_type_symbol.includes('wrench')
);
};

Expand Down

0 comments on commit ebe9db4

Please sign in to comment.