Skip to content

Commit

Permalink
Smokehouse: log out the node command we spawn (#2074)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Apr 26, 2017
1 parent 2bb9c5b commit 8b47006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lighthouse-cli/test/smokehouse/smokehouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function runLighthouse(url, configPath, saveAssetsPath) {
}

runCount++;
console.log(`${log.dim}$ ${command} ${args.join(' ')} ${log.reset}`);
runResults = spawnSync(command, args, {encoding: 'utf8', stdio: ['pipe', 'pipe', 'inherit']});
} while (runResults.status === PROTOCOL_TIMEOUT_EXIT_CODE && runCount <= RETRIES);

Expand Down
4 changes: 4 additions & 0 deletions lighthouse-core/lib/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ class Log {
return '\x1b[1m';
}

static get dim() {
return '\x1b[2m';
}

static get tick() {
return isWindows ? '\u221A' : '✓';
}
Expand Down

0 comments on commit 8b47006

Please sign in to comment.