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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user