$cwd = getcwd();
$output = null;
-$installcomposer = true;
// If behat dependencies not downloaded then do it first, else symfony/process can't be used.
-if ($options['parallel'] && !file_exists(__DIR__ . "/../../../../vendor/autoload.php")) {
- $installcomposer = false;
- testing_update_composer_dependencies();
-}
+testing_update_composer_dependencies();
+// Check whether the behat test environment needs to be updated.
chdir(__DIR__);
exec("php $utilfile --diag $paralleloption", $output, $code);
-// Check if composer needs to be updated.
-if ($installcomposer &&
- ($code == BEHAT_EXITCODE_INSTALL || $code == BEHAT_EXITCODE_REINSTALL || $code == BEHAT_EXITCODE_COMPOSER)) {
- testing_update_composer_dependencies();
- // Check again for behat test site and see if it's install or re-install.
- chdir(__DIR__);
- exec("php $utilfile --diag $paralleloption", $output, $code);
-}
-
if ($code == 0) {
echo "Behat test environment already installed\n";