Skip to content

Commit

Permalink
Debug20
Browse files Browse the repository at this point in the history
  • Loading branch information
polothy committed Jan 31, 2018
1 parent 1f28688 commit 071895a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/BehatCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function startServerProcesses($seleniumJarFile, InputInterface $input)
if (!is_file($seleniumJarFile)) {
throw new \InvalidArgumentException(sprintf('Invalid Selenium Jar file path: %s', $seleniumJarFile));
}
$cmd = sprintf('xvfb-run -a --server-args="-screen 0 1024x768x24" java -jar %s > %s/seleniumserver', $seleniumJarFile, $this->moodle->directory);
$cmd = sprintf('xvfb-run -a --server-args="-screen 0 1024x768x24" java -jar %s -Djava.net.preferIPv4Stack=true > %s/seleniumserver', $seleniumJarFile, $this->moodle->directory);
if ($input->getOption('profile') === 'chrome') {
$driver = '/usr/lib/chromium-browser/chromedriver';
if (!file_exists($driver)) {
Expand All @@ -120,7 +120,7 @@ private function startServerProcesses($seleniumJarFile, InputInterface $input)
$selenium->disableOutput();
$selenium->start();

$sprintf = sprintf('php -S 127.0.0.1:8080 > %s/phpserver', $this->moodle->directory);
$sprintf = sprintf('php -S 127.0.0.1:8080 > %s/phpserver 2>&1', $this->moodle->directory);

echo $sprintf.PHP_EOL;

Expand Down

0 comments on commit 071895a

Please sign in to comment.