Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsmfm committed Apr 6, 2023
1 parent a934dd1 commit aa66854
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions integration-test/src/bin/autify-with-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ const getPollyMode = (): PollyMode => {
};

const getAutifyCli = (): string => {
const autify = AUTIFY_CLI_PATH ?? "autify";
let autify = AUTIFY_CLI_PATH ?? "autify";
if (process.platform === "win32") {
autify += ".cmd";
}

if (!existsSync(autify) && !which.sync(autify))
throw new Error(`Invalid autify-cli path: ${autify}`);
return autify;
Expand Down Expand Up @@ -130,7 +134,6 @@ const autifyWithProxy = async (originalArgs: string[]) => {
AUTIFY_MOBILE_BASE_PATH: `http://127.0.0.1:${mobileProxy.port}/api/v1/`,
},
stdio: "inherit",
shell: process.platform === "win32",
});
return new Promise<ProcStatus>((resolve, reject) => {
proc.on("close", async (code, signal) => {
Expand Down

0 comments on commit aa66854

Please sign in to comment.