mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-55879 behat: Only hook BeforeSuite once
Before suite check and initialise behat env, this is valid for the whole run, so no need to do the inilialsation again
This commit is contained in:
parent
7ceab0d993
commit
b468dbf533
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,11 @@ class behat_hooks extends behat_base {
|
|||
* @BeforeSuite
|
||||
*/
|
||||
public static function before_suite_hook(BeforeSuiteScope $scope) {
|
||||
// If behat has been initialised then no need to do this again.
|
||||
if (self::$initprocessesfinished) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
self::before_suite($scope);
|
||||
} catch (behat_stop_exception $e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue