- Issue created by @klausi
- Merge request !6510fix(errors): Exit with error one if there was a fatal error on CLI → (Open) created by klausi
- last update
over 1 year ago 2,167 pass - Status changed to Needs review
over 1 year ago 12:59pm 8 February 2024 - 🇸🇰Slovakia poker10
Thanks for reporting/working on this. The same change seems to be already in D10, see: #2927012: _drupal_log_error() returns a 0 exit code on errors → , so I think this looks good.
Not sure if we can easily backport the test from D10, as we do not have
PhpProcess. Any thoughts? Did not have time to look at that more thoroughly yet. - 🇦🇹Austria klausi 🇦🇹 Vienna
Hey nice find!
We could copy the code from Symfony Process for the test, but not sure if it is worth it to try to port that somehow?
I would say we can commit this without test, since it does not affect end users and is just for command line invocations.
- Status changed to RTBC
over 1 year ago 6:09am 16 February 2024 - 🇬🇧United Kingdom mcdruid 🇬🇧🇪🇺
I don't think we need to jump through hoops to backport the test to D7.
However, per #2927012-33: _drupal_log_error() returns a 0 exit code on errors → it deserves a Change Record as it may cause a change in the behaviour of tests.
- 🇸🇰Slovakia poker10
I have created a draft CR for D7: https://www.drupal.org/node/3438765 → (it is mostly the copy from the D8 CR).
- Status changed to Fixed
over 1 year ago 12:49pm 12 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.