Skip to content

Commit

Permalink
Move the check for enabling langimport tests
Browse files Browse the repository at this point in the history
The check for enabling the lang import tests should only be performed
once all the config settings have been applied.
  • Loading branch information
junpataleta committed Dec 11, 2024
1 parent f70c5e4 commit 6d7d140
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions runner/main/modules/docker-php/config.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@
// Skip language upgrade during the on-sync period.
$CFG->skiplangupgrade = false;

// Enable tests needing language install/upgrade
// only if we have language upgrades enabled (aka,
// when we aren't skipping them).
if (empty($CFG->skiplangupgrade)) {
define('TOOL_LANGIMPORT_REMOTE_TESTS', true);
}

$CFG->wwwroot = 'http://host.name';
$CFG->dataroot = '/var/www/moodledata';
$CFG->admin = 'admin';
Expand Down Expand Up @@ -89,6 +82,13 @@
\moodlehq_ci_runner::apply_config_settings($config);
}

// Enable tests needing language install/upgrade
// only if we have language upgrades enabled (aka,
// when we aren't skipping them).
if (empty($CFG->skiplangupgrade)) {
define('TOOL_LANGIMPORT_REMOTE_TESTS', true);
}

define('PHPUNIT_LONGTEST', true);

define('PHPUNIT_PATH_TO_SASSC', '/usr/bin/sassc');
Expand Down

0 comments on commit 6d7d140

Please sign in to comment.