Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-10-10 02:42:25 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-10-10 02:42:40 +0400
commitb043a19c30bdf2dbdb0a19c6e96e134d8466aef9 (patch)
treef36cb86c0c16b7a0387a3375526a8213f9f97554 /plugins
parent4c82ca21edb7178c585bc3eb7b63d3fb67a10832 (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.php4
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>');