diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-10-10 02:42:25 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-10-10 02:42:40 +0400 |
commit | b043a19c30bdf2dbdb0a19c6e96e134d8466aef9 (patch) | |
tree | f36cb86c0c16b7a0387a3375526a8213f9f97554 /plugins | |
parent | 4c82ca21edb7178c585bc3eb7b63d3fb67a10832 (diff) |
refs #5940 execute file relative from piwik directory and not from phpunit dir [ci-skip]
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreConsole/Commands/TestsRun.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreConsole/Commands/TestsRun.php b/plugins/CoreConsole/Commands/TestsRun.php index da52369299..2a5575d6ef 100644 --- a/plugins/CoreConsole/Commands/TestsRun.php +++ b/plugins/CoreConsole/Commands/TestsRun.php @@ -89,6 +89,10 @@ class TestsRun extends ConsoleCommand private function executeTestFile($testFile, $options, $command, OutputInterface $output) { + if ('/' !== substr($testFile, 0, 1)) { + $testFile = '../../' . $testFile; + } + $params = $options . " " . $testFile; $cmd = $this->getCommand($command, $params); $output->writeln('Executing command: <info>' . $cmd . '</info>'); |