Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
replacing common module with fixtures module for cmd string building
  • Loading branch information
FNJ5 committed Oct 6, 2017
commit 7bd09d10e3f99fa621c7362219de550b0ca75129
4 changes: 3 additions & 1 deletion test/parallel/test-error-reporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@

'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const exec = require('child_process').exec;
const path = require('path');

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