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

[Process] Fix ProcessTest - testIgnoringSignal for local#57767

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
nicolas-grekas merged 1 commit intosymfony:7.1fromthibaut22200:7.1
Jul 26, 2024

Conversation

thibaut22200
Copy link
Contributor

@thibaut22200thibaut22200 commentedJul 18, 2024
edited
Loading

QA
Branch?7.1
Bug fix?no
New feature?no
Deprecations?no
IssuesFix Process test (testIgnoringSignal)
LicenseMIT

Fix ProcessTest : testIgnoringSignal().
Tests on 2 independant env. The test was failed.
Have to pass an array instead of string in the getProcess()

@carsonbotcarsonbot added this to the7.1 milestoneJul 18, 2024
Copy link
Member

@derrabusderrabus left a comment

Choose a reason for hiding this comment

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

We should not need this change. ThegetProcess() method is supposed to handle both, arrays and strings.

@carsonbotcarsonbot changed the titleFix ProcessTest - testIgnoringSignal for local[Process] Fix ProcessTest - testIgnoringSignal for localJul 18, 2024
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment
edited
Loading

Choose a reason for hiding this comment

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

This is not a CS change: this removes the sh wrapper. For some reason, this test case also fails on my laptop and this patch fixes it. Dunno how masking works when there's a shell wrapper but at least when there's none, this proves masking works.

derrabus and AlexisRossat reacted with thumbs up emoji
Copy link
Member

@derrabusderrabus left a comment

Choose a reason for hiding this comment

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

All right then.

@@ -1669,7 +1669,7 @@ public function testIgnoringSignal()
$this->markTestSkipped('pnctl extension is required.');
}

$process = $this->getProcess('sleep10');
$process = $this->getProcess(['sleep', '10']);
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to change line 1688 as well?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The test works without changing it so... no I guess

Copy link
Member

Choose a reason for hiding this comment

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

While this might be true the comment on the test states that it acts as a prove that the previous test tests what it claims to do. Thus the only difference should be the missingsetIgnoredSignals() call IMO to keep them as similar as possible.

nicolas-grekas reacted with thumbs up emoji
@@ -1669,7 +1669,7 @@ public function testIgnoringSignal()
$this->markTestSkipped('pnctl extension is required.');
}

$process = $this->getProcess('sleep10');
$process = $this->getProcess(['sleep', '10']);
Copy link
Member

Choose a reason for hiding this comment

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

While this might be true the comment on the test states that it acts as a prove that the previous test tests what it claims to do. Thus the only difference should be the missingsetIgnoredSignals() call IMO to keep them as similar as possible.

nicolas-grekas reacted with thumbs up emoji
@nicolas-grekas
Copy link
Member

Thank you@thibaut22200.

@nicolas-grekasnicolas-grekas merged commit1dbc465 intosymfony:7.1Jul 26, 2024
7 of 10 checks passed
@thibaut22200thibaut22200 deleted the 7.1 branchJuly 26, 2024 12:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot left review comments

@xabbuhxabbuhxabbuh requested changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@derrabusderrabusderrabus approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.1
Development

Successfully merging this pull request may close these issues.

6 participants
@thibaut22200@nicolas-grekas@fabpot@derrabus@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp