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

test: fix runCommand when path has spaces #99

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

nelson6e65
Copy link
Contributor

@nelson6e65 nelson6e65 commented Jun 3, 2022

Use node "${qnmBin}" instead of ${qnmBin} directly to solve two issues:

  • Tests failed when absolute path of qnm repository has spaces. Example:
    /path/i have spaces/qnm
  • bin/qnm.js is not always made executable when cloned on windows to rely on node shebang.

Note: "" instead of '' to escape spaces on Windows too.

This is a prefix to work on #98 and #97

Use `node "${qnmBin}"` instead of `${qnmBin}` directly to solve two issues:

- Tests failed when absolute path of qnm repository has spaces. Example:
`/path/i have spaces/qnm`
- `bin/qnm.js` is not always made executable when cloned on windows to rely on node shebang.

Note: `""` instead of `''` to escape spaces on Windows too.
Copy link
Owner

@ranyitz ranyitz left a comment

Choose a reason for hiding this comment

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

Thanks @nelson6e65, it looks great

@ranyitz ranyitz merged commit 61b7ef8 into ranyitz:master Jun 3, 2022
@nelson6e65 nelson6e65 deleted the windows-patch branch June 3, 2022 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants