Skip to content

Don't test hidden files that happen to end in .phpt #7783

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 1 commit into from
Dec 23, 2021

Conversation

cscott
Copy link
Contributor

@cscott cscott commented Dec 15, 2021

This is a tiny improvement to run-tests.php which helps keep it from tripping over hidden files, including emacs autosave files, metadata files on some platforms, etc.

@alecpl
Copy link

alecpl commented Dec 16, 2021

I guess we could ignore any file that starts with a dot. It would be a more general solution.

@cmb69
Copy link
Member

cmb69 commented Dec 16, 2021

I guess we could ignore any file that starts with a dot. It would be a more general solution.

I'm okay with that, but not necessarily with special casing for whatever editor/IDE.

@cscott cscott force-pushed the dont-test-emacs-autosave branch 2 times, most recently from 48e3ce4 to bdb98a3 Compare December 16, 2021 15:50
@cscott cscott changed the title Don't test emacs autosave files Don't test hidden files that happen to end in .phpt Dec 16, 2021
@cscott
Copy link
Contributor Author

cscott commented Dec 16, 2021

I guess we could ignore any file that starts with a dot. It would be a more general solution.
I'm okay with that, but not necessarily with special casing for whatever editor/IDE.

Ok, tweaked to ignore files starting with a dot. That makes sense. Various filesystems use these for metadata of various forms, too.

@cscott cscott force-pushed the dont-test-emacs-autosave branch 2 times, most recently from a840e57 to 306f2e3 Compare December 20, 2021 16:11
@cmb69
Copy link
Member

cmb69 commented Dec 20, 2021

If there are no objections, I'll merge that by the end of the week.

This is a tiny improvement to run-tests.php which helps keep it from
tripping over hidden files, including autosave files from various
editors, metadata on certain platforms, etc.
@cscott cscott force-pushed the dont-test-emacs-autosave branch from 306f2e3 to 9026290 Compare December 22, 2021 22:11
@cscott
Copy link
Contributor Author

cscott commented Dec 22, 2021

Rebased onto current master to (hopefully) fix CI issues. No other changes.

@cmb69 cmb69 merged commit eebe910 into php:master Dec 23, 2021
@cmb69
Copy link
Member

cmb69 commented Dec 23, 2021

Thank you!

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.

4 participants