8000 [Process] Fix transient tests for incremental outputs by nicolas-grekas · Pull Request #17650 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Process] Fix transient tests for incremental outputs #17650

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
Feb 2, 2016

Conversation

nicolas-grekas
Copy link
Member
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15617
License MIT
Doc PR -

file_put_contents($lock, 'W');
$lock = tempnam(sys_get_temp_dir(), __FUNCTION__);

$p = $this->getProcess(sprintf('%s -r %s', self::$phpBin, escapeshellarg('file_put_contents($s = \''.$uri.'\', $s); flock(fopen('.var_export($lock, true).', \'r\'), LOCK_EX); file_put_contents($s, \'foo\');')));
Copy link
Member

Choose a reason for hiding this comment

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

Why using the uri as content to be written ? this makes the test harder to read IMO. Couldn't we use some hardcoded content instead, and use the uri only as uri ?

Copy link
Member Author

Choose a reason for hiding this comment

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

changed

@nicolas-grekas nicolas-grekas merged commit 90455df into symfony:2.3 Feb 2, 2016
nicolas-grekas added a commit that referenced this pull request Feb 2, 2016
…icolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Process] Fix transient tests for incremental outputs

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15617
| License       | MIT
| Doc PR        | -

Commits
-------

90455df [Process] Fix transient tests for incremental outputs
@nicolas-grekas nicolas-grekas deleted the transient branch February 2, 2016 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0