Skip to content

fix tests on systemd enabled build #9537

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

Closed
wants to merge 1 commit into from

Conversation

remicollet
Copy link
Member

Adapt 2 new tests for systemd which add an additional line in log NOTICE: systemd monitor interval set to...

assert(strpos($errorLogLines[4], 'NOTICE: using inherited socket'));

if (strpos($errorLogLines[2], 'systemd')) {
assert(strpos($errorLogLines[3], 'NOTICE: Reloading in progress'));
Copy link
Member

Choose a reason for hiding this comment

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

do you think using an offset would avoid repeating those ?

@bukka
Copy link
Member

bukka commented Sep 14, 2022

I'm actually just working on some changes in FPM tester which will address this issue. Also this test will be changed to look something like: https://github.com/bukka/php-src/blob/c03c38166f3d90f7e9a226d6b69d29fe10feee5d/sapi/fpm/tests/gh8885-stderr-fd-reload-usr2.phpt (not working yet so might be slightly different). Part of those changes will be skipping extra messages so it will be possible to use debug log (this is mainly so I can debug tests in the pipeline and get proper logging to see what's going on). It means it will also automatically skip this as well. It should be ready in the next few weeks and will go to 8.0 as I will need it for some other bug fixes.

@bukka
Copy link
Member

bukka commented Sep 21, 2022

This should get fixed by #9588

@remicollet
Copy link
Member Author

Replaced by #9588

@remicollet remicollet closed this Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment