Skip to content

Commit 00409a5

Browse files
authored
Merge pull request #27 from WyriHaximus-labs/our-own-special-test-directory
Create random directories within our own temporary test directory
2 parents 2f7cd23 + 885c268 commit 00409a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function mockAdapter(LoopInterface $loop = null)
5959

6060
public function setUp()
6161
{
62-
$this->tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('react-filesystem-tests-') . DIRECTORY_SEPARATOR;
62+
$this->tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'react-filesystem-tests' . DIRECTORY_SEPARATOR . uniqid('', true) . DIRECTORY_SEPARATOR;
6363
mkdir($this->tmpDir, 0777, true);
6464
$this->startTime = time();
6565
}

travis-init.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
mkdir `php -r "echo sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'react-filesystem-tests' . DIRECTORY_SEPARATOR;"`
4+
chmod 0777 -Rfv `php -r "echo sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'react-filesystem-tests' . DIRECTORY_SEPARATOR;"`
5+
36
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then
47
# install 'eio' PHP extension (does not support nightly)
58
if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]]; then

0 commit comments

Comments
 (0)