Skip to content

Commit

Permalink
Fixes pester#63: __dirname must be quoted to support paths with spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladenedge committed Feb 2, 2022
1 parent d606005 commit 100f534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion Extension/PesterTask/src/pesterv10.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" + '"',
"-TestFolder", TestFolder,
"-resultsFile", resultsFile,
"-run32Bit", run32Bit,
Expand Down

0 comments on commit 100f534

Please sign in to comment.