Merge branch 'MDL-47711' of git://github.com/timhunt/moodle

This commit is contained in:
Dan Poltawski
2014-10-20 17:28:50 +01:00
+2 -1
View File
@@ -132,7 +132,8 @@ class behat_hooks extends behat_base {
// Prevents using outdated data, upgrade script would start and tests would fail.
if (!behat_util::is_test_data_updated()) {
$commandpath = 'php admin/tool/behat/cli/init.php';
throw new Exception('Your behat test site is outdated, please run ' . $commandpath . ' from your moodle dirroot to drop and install the behat test site again.');
throw new Exception("Your behat test site is outdated, please run\n\n " .
$commandpath . "\n\nfrom your moodle dirroot to drop and install the behat test site again.");
}
// Avoid parallel tests execution, it continues when the previous lock is released.
test_lock::acquire('behat');