Skip to content
Open
Changes from all commits
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
15 changes: 5 additions & 10 deletions test/run.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ function run(prog, command, args, app, opts, cb) {
// here we add the program and the command
let final_cmd = prog + ' ' + command;

// if we are calling out to `node-pre-gyp` let's ensure we directly
// call the local version at a relative path (to avoid the change) we might
// use some external version on PATH
// if we are calling out to `node-pre-gyp`, let's ensure we directly
// call the local version at a relative path (to avoid the change)
// we might use some external version on PATH
if (final_cmd.indexOf('node-pre-gyp') > -1) {
final_cmd = cmd_path + final_cmd;
if (opts.npg_debug) {
Expand All @@ -53,22 +53,17 @@ function run(prog, command, args, app, opts, cb) {
}
}

// unless explicitly provided, lets execute the command inside the app specific directory
// unless explicitly provided, let's execute the command inside the app-specific directory
if (!opts.cwd) {
opts.cwd = path.join(__dirname, app.name);
}

// Test building with msvs 2022
if (process.platform === 'win32') {
final_cmd += ' --msvs_version=2022 ';
}

// finish appending all arguments
final_cmd += ' ' + app.args;
final_cmd += ' ' + args;


// On unix we want to display compile args (rather than have them hidden)
// On Unix we want to display compile args (rather than have them hidden)
// for easier debugging of unexpected compile failures.
// We do this by pre-pending the magic variable that make responds to.
if (process.platform !== 'win32') {
Expand Down
Loading