Skip to content

Commit

Permalink
Set the baseline directory in the container (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jul 31, 2024
1 parent bef4d59 commit fb1d863
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testrunner/src/testrunners/docker-testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ export default async function runJob(job) {
job.data.config.extends = nconf.get('sitespeedioConfigFile');
}

// If we use baseliing setup the directory by default
if (
(job.data.extras && job.data.extras.includes('--compare.')) ||
job.data.config.compare
) {
// This is inside the container and we always use /baseline
job.data.config.compare.baselinePath = '/baseline';
}

await writeFile(
join(workingDirectory, configFileName),
JSON.stringify(job.data.config)
Expand Down

0 comments on commit fb1d863

Please sign in to comment.