version 2016092300.00
As we integrate local customizations to our fork of the moodle/moodle/master branch, we're trying to test with the included version of behat. We have a shared development server so when I went to run the tests I got an error like this:
[Behat\Testwork\Call\Exception\CallErrorException]
Warning: file_put_contents(/tmp/behat_gherkin_cache/412/d211f7e894af945272bcde0dc32523c0.feature.cache): failed to open stream: Permission denied in /home/tjn/prj/moodle/git/docs/vendor/behat/gherkin/src/Behat/Gherkin/Cache/FileCache.php line 88
I found that /tmp/behat_gherkin_cache was created automatically, owned by another developer and not writable by me.
This seems configured by this snippit of code:
->defaultValue(
is_writable(sys_get_temp_dir())
? sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'behat_gherkin_cache'
: null
in vendor/behat/behat/src/Behat/Behat/Gherkin/ServiceContainer/GherkinExtension.phpI don't see another way to configure this directory to avoid collisions with multiple developers on the same host. -- Am I missing something? Thanks, --Travis