Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] Don't return early as this bypasses the auto exit feature#28664

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chalasr merged 1 commit intosymfony:3.4fromduncan3dc:fix-exit-code
Oct 1, 2018

Conversation

@duncan3dc
Copy link
Contributor

@duncan3dcduncan3dc commentedOct 1, 2018
edited by nicolas-grekas
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?no
Fixed tickets#28666
LicenseMIT

It looks like8805cfd broke the auto exit feature by returning early.

I couldn't find any tests for this feature (presumably because it usesexit()), I was going to write one using uopz but didn't want to do this work if Symfony intentionally doesn't test the call toexit()

TomasVotruba reacted with thumbs up emoji
@stof
Copy link
Member

stof commentedOct 1, 2018

Testing this case would indeed be harder. A way could be to run a subprocess running the Application class and checking the exit code of the command (if the call toexit is not performed, it would exit with0 rather than the expected one)

@chalasr
Copy link
Member

Thank you@duncan3dc.

@chalasrchalasr merged commitb6c17df intosymfony:3.4Oct 1, 2018
chalasr pushed a commit that referenced this pull requestOct 1, 2018
…t feature (duncan3dc)This PR was merged into the 3.4 branch.Discussion----------[Console] Don't return early as this bypasses the auto exit feature| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | no| Fixed tickets || License       | MITIt looks like8805cfd broke the auto exit feature by returning early.I couldn't find any tests for this feature (presumably because it uses `exit()`), I was going to write one using uopz but didn't want to do this work if Symfony intentionally doesn't test the call to `exit()`Commits-------b6c17df Don't return early as this bypasses the auto exit feature
@duncan3dcduncan3dc deleted the fix-exit-code branchOctober 1, 2018 16:09
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneOct 3, 2018
This was referencedOct 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@duncan3dc@stof@chalasr@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp