Skip to content

Commit

Permalink
refs #5940 execute file relative from piwik directory and not from ph…
Browse files Browse the repository at this point in the history
…punit dir [ci-skip]
  • Loading branch information
tsteur committed Oct 9, 2014
1 parent 4c82ca2 commit b043a19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/CoreConsole/Commands/TestsRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ protected function execute(InputInterface $input, OutputInterface $output)

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>');
Expand Down

0 comments on commit b043a19

Please sign in to comment.