Skip to content

Commit

Permalink
misc: lantern script path resolution fix (#6380)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce authored and brendankenny committed Oct 24, 2018
1 parent acfac44 commit e3949e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/scripts/lantern/run-once.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const traceSaver = require('../../../lighthouse-core/lib/lantern-trace-saver');
if (process.argv.length !== 4) throw new Error('Usage $0 <trace file> <devtools file>');

async function run() {
const tracePath = require.resolve(process.argv[2]);
const tracePath = path.resolve(process.cwd(), process.argv[2]);
const traces = {defaultPass: require(tracePath)};
const devtoolsLogs = {defaultPass: require(process.argv[3])};
const devtoolsLogs = {defaultPass: require(path.resolve(process.cwd(), process.argv[3]))};
const artifacts = {traces, devtoolsLogs};

const context = {computedCache: new Map()};
Expand Down

0 comments on commit e3949e2

Please sign in to comment.