Skip to content

Commit

Permalink
Use spawnSync to allow spaces in server bin path (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed May 2, 2023
1 parent 42c6cc9 commit 17bd516
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/driver/test/testUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export const getServerCommand = (
}

const helpCmd = [...args, "--help"];
const help = child_process.execSync(helpCmd.join(" "));
const help = child_process
.spawnSync(srvcmd, helpCmd.slice(1))
.stdout.toString();

if (help.includes("--tls-cert-mode")) {
args.push("--tls-cert-mode=generate_self_signed");
Expand Down

0 comments on commit 17bd516

Please sign in to comment.