Skip to content

Commit

Permalink
Revert manual argument quoting. Remove Windows-specific argument hand…
Browse files Browse the repository at this point in the history
…ling for spawn(). [Refs pester#63]
  • Loading branch information
ladenedge committed Feb 4, 2022
1 parent 100f534 commit 0c39766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extension/PesterTask/src/pester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function run() {
}

// we need to not pass the null param
var args = ['"' + __dirname + "\\Pester.ps1" + '"',
var args = [__dirname + "\\Pester.ps1",
"-scriptFolder", scriptFolder,
"-resultsFile", resultsFile,
"-run32Bit", run32Bit,
Expand Down Expand Up @@ -94,7 +94,7 @@ export async function run() {
logInfo(`${executable} ${args.join(" ")}`);

var spawn = require("child_process").spawn, child;
child = spawn(executable, args, {windowsVerbatimArguments: true});
child = spawn(executable, args);
child.stdout.on("data", function (data) {
logInfo(data.toString());
});
Expand Down

0 comments on commit 0c39766

Please sign in to comment.