MDL-63977 Behat: Prefer ionic approot over wwwroot

main
Andrew Nicols 2019-02-13 13:55:34 +08:00
parent c5ce5618ab
commit b7804052a8
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class behat_app extends behat_base {
protected function start_or_reuse_ionic() {
global $CFG;
if (!empty($CFG->behat_ionic_wwwroot)) {
if (empty($CFG->behat_ionic_dirroot) && !empty($CFG->behat_ionic_wwwroot)) {
// Use supplied Ionic server which should already be running.
$url = $CFG->behat_ionic_wwwroot;
} else if (self::$ionicrunning) {