Skip to content

Commit

Permalink
test: use fixtures.path for cmd string building
Browse files Browse the repository at this point in the history
PR-URL: #15982
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
  • Loading branch information
FNJ5 authored and MylesBorins committed Oct 11, 2017
1 parent 4594315 commit 9592a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-error-reporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
const common = require('../common');
const assert = require('assert');
const exec = require('child_process').exec;
const path = require('path');
const fixtures = require('../common/fixtures');

function errExec(script, callback) {
const cmd = `"${process.argv[0]}" "${path.join(common.fixturesDir, script)}"`;
const cmd = `"${process.argv[0]}" "${fixtures.path(script)}"`;
return exec(cmd, function(err, stdout, stderr) {
// There was some error
assert.ok(err);
Expand Down

0 comments on commit 9592a48

Please sign in to comment.