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

Avoid using shell option for autify-with-proxy #394

Merged
merged 3 commits into from
Apr 10, 2023
Merged

Conversation

mtsmfm
Copy link
Contributor

@mtsmfm mtsmfm commented Apr 6, 2023

Mainly the change is 1a5b628

Other commits are just for updating recordings.

Because of this shell option, quotes will be removed when autify-with-proxy passes arguments to autify CLI but both our GitHub and CircleCI integration won't have any quotes.

autifyhq/actions-web-test-run#33

To remove quotes from recordings files and keep the behavior as the same as integrations, I'd like to avoid shell option.

@mtsmfm mtsmfm force-pushed the mtsmfm/dont-use-shell branch from aa66854 to b398aad Compare April 6, 2023 08:53
const autify = AUTIFY_CLI_PATH ?? "autify";
let autify = AUTIFY_CLI_PATH ?? "autify";
if (process.platform === "win32") {
autify += ".cmd";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because child_process.spawn ignores PATHEXT

nodejs/node-v0.x-archive#2318

@mtsmfm mtsmfm requested review from riywo and a team April 6, 2023 09:10
@mtsmfm mtsmfm marked this pull request as ready for review April 6, 2023 09:10
Copy link
Member

@hgsgtk hgsgtk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

Copy link
Contributor

@4ydx 4ydx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mtsmfm mtsmfm merged commit 92bd31b into main Apr 10, 2023
@mtsmfm mtsmfm deleted the mtsmfm/dont-use-shell branch April 10, 2023 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants