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

RulesetTest: fix compatibility with Windows #503

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Jul 21, 2020

This is probably just needed for me, but when running the ruleset tests locally on Windows, they wouldn't run and would show a '$PHPCS_BIN' is not recognized as an internal or external command, operable program or batch file. error.

By not relying on (linux) CLI variable expansion, but expanding the variable to its real path value and using the literal value within the script, the tests can be run on Windows too.

(and yes, I'm making sure my local environment is all set up correctly for working with VIPCS ;-) )

This is probably just needed for me, but when running the ruleset tests locally on Windows, they wouldn't run and would show a `'$PHPCS_BIN' is not recognized as an internal or external command,
operable program or batch file.` error.

By not relying on (linux) CLI variable expansion, but expanding the variable to its real path value and using the literal value within the script, the tests can be run on Windows too.
@jrfnl jrfnl requested a review from a team as a code owner July 21, 2020 21:10
@GaryJones GaryJones merged commit df43dcd into develop Jul 21, 2020
@GaryJones GaryJones deleted the fix/ruleset-test-windows-compat branch July 21, 2020 21:38
@GaryJones GaryJones added this to the 2.2.0 milestone Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants