Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #63: __dirname must be quoted to support paths with spaces. #64

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Extension/PesterTask/src/pester.ts
Original file line number Diff line number Diff line change
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
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
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ stages:
jobs:
- deployment: validate
displayName: Validate publish
pool:
vmImage: windows-latest
environment: pester
strategy:
runOnce:
Expand Down