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

Fix detox cli --platform flag on Windows #763

Merged
merged 2 commits into from
Jul 4, 2018

Conversation

simonbuchan
Copy link
Contributor

@simonbuchan simonbuchan commented May 31, 2018

A couple quick fixes for detox test --platform and detox self unit tests running on windows.

@simonbuchan simonbuchan requested a review from rotemmiz as a code owner May 31, 2018 10:32
@simonbuchan simonbuchan changed the title Fix shell quoting on windows for detox test --platform Follow-up windows changes Jun 5, 2018
@noomorph
Copy link
Collaborator

noomorph commented Jul 3, 2018

@simonbuchan , any updates so far? By the way, can we use a dedicated package for quoting? https://github.com/substack/node-shell-quote

I'd love to get unit test fixes for Win32 to the suite. Hope to see them merged :)

@simonbuchan
Copy link
Contributor Author

Nope, that's bash only, and not even particularly good quoting at that (see the issues list) - which is surprising to me, substack's stuff tends to be better than that. Been a while since I looked, but I don't remember finding anything that good.

In this case it doesn't actually matter, as the input isn't user controllable, and wouldn't give them any elevation of privilege if it were, a fully general quoting library is overkill. I'd only bother if we replaced all calls going through shell with an auto quoting library (eg all the ADB calls, some of which use user input) but that's a different PR.

Otherwise, is anything blocking this? PR failures look like they're just flaking.

@noomorph
Copy link
Collaborator

noomorph commented Jul 3, 2018

@simonbuchan , good to hear from you. I think @rotemmiz was approaching you in Wix OSS Slack, could you check PM from him?

@noomorph
Copy link
Collaborator

noomorph commented Jul 4, 2018

I took a look at the PR on Windows 10 64 Bit (CMD.EXE), Ubuntu 18.04 (Bash), MacOS 10.12 (Bash) — works solid, no objections. And it really fixes detox/detox/test project's npm run e2e:android, so it's a nice to have in the master.

@rotemmiz rotemmiz merged commit a6957fc into wix:master Jul 4, 2018
@wix wix locked and limited conversation to collaborators Jul 23, 2018
@rotemmiz rotemmiz changed the title Follow-up windows changes Fix detox cli --platform flag on Windows Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants