Skip to content

Commit

Permalink
Merge pull request #277 from montehurd/fix-make-report
Browse files Browse the repository at this point in the history
Fix index report generation
  • Loading branch information
montehurd authored Apr 30, 2024
2 parents 270790b + e4c843c commit 433e300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ async function runRegressionGroup( groupName, groupDef, opts ) {

async function generateIndexFile( outputDir, html ) {
const indexFilePath = `${outputDir}/index.html`;
const { stdout } = await exec( `source ./src/makeReportIndex.sh && makeReport "${indexFilePath}" "${html.replace( /"/g, '\\"' )}"` );
const { stdout } = await exec( `./src/makeReportIndex.sh "${indexFilePath}" "${html.replace( /"/g, '\\"' )}"` );
console.log( stdout );
return indexFilePath;
}
Expand Down
2 changes: 1 addition & 1 deletion src/makeReportIndex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ EOF
echo "${filePath}"
}

export -f makeReport
makeReport "$@"

0 comments on commit 433e300

Please sign in to comment.