Skip to content

Commit

Permalink
fix setting baselinepath (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Aug 2, 2024
1 parent 4336de8 commit 00420d4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testrunner/src/testrunners/docker-testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,19 @@ export default async function runJob(job) {
job.data.config.extends = nconf.get('sitespeedioConfigFile');
}

// If we use baseliing setup the directory by default
// If we use baseline 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';
if (job.data.config.compare) {
job.data.config.compare.baselinePath = '/baseline';
} else {
job.data.config.compare = {
baselinePath: '/baseline'
};
}
}

await writeFile(
Expand Down

0 comments on commit 00420d4

Please sign in to comment.