Skip to content

Commit 0c39766

Browse files
committed
Revert manual argument quoting. Remove Windows-specific argument handling for spawn(). [Refs pester#63]
1 parent 100f534 commit 0c39766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/PesterTask/src/pester.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function run() {
4545
}
4646

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

9696
var spawn = require("child_process").spawn, child;
97-
child = spawn(executable, args, {windowsVerbatimArguments: true});
97+
child = spawn(executable, args);
9898
child.stdout.on("data", function (data) {
9999
logInfo(data.toString());
100100
});

0 commit comments

Comments
 (0)