Skip to content
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

file_put_contents(/tmp/atoum.score): failed to open stream: Permission denied #55

Closed
marmotz opened this issue Feb 16, 2012 · 3 comments
Assignees

Comments

@marmotz
Copy link
Contributor

marmotz commented Feb 16, 2012

If many users launch tests on a single machine, atoum bug.

One user create a file /tmp/atoum.score with his uid/gid.
The second one can't launch atoum:

Warning: file_put_contents(/tmp/atoum.score): failed to open stream: Permission denied in /var/www/html/lib/atoum/src/classes/adapter.php on line 18

Call Stack:
    0.0104    2082536   1. mageekguy\atoum\scripts\{closure}() /var/www/html/lib/atoum/src/classes/scripts/runner.php:0
    0.0104    2082536   2. mageekguy\atoum\scripts\runner->run() /var/www/html/lib/atoum/src/classes/scripts/runner.php:245
    0.1401    4523008   3. mageekguy\atoum\scripts\runner->saveScore() /var/www/html/lib/atoum/src/classes/scripts/runner.php:123
    0.1401    4525464   4. mageekguy\atoum\adapter->file_put_contents() /var/www/html/lib/atoum/src/classes/scripts/runner.php:611
    0.1401    4525992   5. mageekguy\atoum\adapter->__call() /var/www/html/lib/atoum/src/classes/scripts/runner.php:611
    0.1401    4525992   6. mageekguy\atoum\adapter->invoke() /var/www/html/lib/atoum/src/classes/adapter.php:13
    0.1401    4526040   7. call_user_func_array() /var/www/html/lib/atoum/src/classes/adapter.php:18

Error: Unable to save score in '/tmp/atoum.score'
@ghost ghost assigned mageekguy Feb 18, 2012
@mageekguy
Copy link
Contributor

You're using the loop mode ?

@marmotz
Copy link
Contributor Author

marmotz commented Feb 18, 2012

ALWAYS !!!!!

@mageekguy
Copy link
Contributor

This file is generated only in loop mode.
You can resolve this problem with a call to runner::setScoreFile('/path/to/score/file/for/each/user') in a atoum config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants