Skip to content

Fix GH-10489: run-tests.php does not escape path when building cmd #10560

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

Merged
merged 2 commits into from
Feb 25, 2023

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Feb 10, 2023

Fixes GH-10489

Multiple tests had to be changed to escape the arguments in shell
commands. Some tests are skipped because they behave differently with
spaces in the path versus without. One notable example of this is the
hashbang test which does not work because spaces in hashbangs paths are
not supported in Linux.

@nielsdos nielsdos force-pushed the fix-10489 branch 3 times, most recently from 7a0635a to 8cd9090 Compare February 11, 2023 13:57
@nielsdos nielsdos marked this pull request as ready for review February 11, 2023 16:16
@nielsdos nielsdos force-pushed the fix-10489 branch 2 times, most recently from d77cb70 to cbc10c6 Compare February 13, 2023 20:41
@nielsdos
Copy link
Member Author

I applied @Girgias 's feedback and everything's green :).

@nielsdos nielsdos force-pushed the fix-10489 branch 2 times, most recently from c25e501 to 8dae878 Compare February 15, 2023 08:40
@Girgias
Copy link
Member

Girgias commented Feb 21, 2023

Can you please rebase this onto master, as trying to merge this upwards is a massive hassle and I don't think it's really worth it to fix in release versions...

@nielsdos nielsdos changed the base branch from PHP-8.1 to master February 23, 2023 20:51
@nielsdos
Copy link
Member Author

Finally rebased this on master.

@Girgias
Copy link
Member

Girgias commented Feb 24, 2023

Windows seems to be failing for reasons

@nielsdos
Copy link
Member Author

Is it possible to retrigger Windows alone, or should I just rerun all of CI by doing rebase+force push?

@Girgias
Copy link
Member

Girgias commented Feb 25, 2023

Is it possible to retrigger Windows alone, or should I just rerun all of CI by doing rebase+force push?

I don't think I can retrigger appveyor sadly :/

nielsdos and others added 2 commits February 25, 2023 13:51
Multiple tests had to be changed to escape the arguments in shell
commands. Some tests are skipped because they behave differently with
spaces in the path versus without. One notable example of this is the
hashbang test which does not work because spaces in hashbangs paths are
not supported in Linux.
@Girgias
Copy link
Member

Girgias commented Feb 25, 2023

Thank you!

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.

run-tests.php does not escape path when building cmd
3 participants