Commit 41790c4 1 parent f390a2d commit 41790c4 Copy full SHA for 41790c4
File tree 3 files changed +13
-11
lines changed
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -565,15 +565,11 @@ public function updateSites() {
565
565
$ this ->config ->set ('drush.uri ' , $ multisite );
566
566
567
567
$ status_code = $ this ->invokeCommand ('setup:config-import ' );
568
- if (!$ status_code ) {
569
- return $ status_code ;
570
- }
571
568
$ status_code = $ this ->invokeCommand ('setup:toggle-modules ' );
572
- if (!$ status_code ) {
573
- return $ status_code ;
574
- }
575
569
576
570
$ this ->say ("Finished deploying updates to $ multisite. " );
571
+
572
+ return $ status_code ;
577
573
}
578
574
}
579
575
Original file line number Diff line number Diff line change @@ -89,9 +89,11 @@ public function behat() {
89
89
$ this ->createReportsDir ();
90
90
$ this ->launchWebServer ();
91
91
$ this ->launchWebDriver ();
92
- $ this ->executeBehatTests ();
92
+ $ behat_exit_code = $ this ->executeBehatTests ();
93
93
$ this ->killWebDriver ();
94
94
$ this ->killWebServer ();
95
+
96
+ return $ behat_exit_code ;
95
97
}
96
98
97
99
/**
@@ -254,6 +256,8 @@ public function setupPhantomJs() {
254
256
* Throws an exception if any Behat test fails.
255
257
*/
256
258
protected function executeBehatTests () {
259
+ $ exit_code = 0 ;
260
+
257
261
foreach ($ this ->getConfigValue ('behat.paths ' ) as $ behat_path ) {
258
262
// Output errors.
259
263
// @todo replace base_url in behat config when internal server is being used.
@@ -281,9 +285,11 @@ protected function executeBehatTests() {
281
285
$ result = $ task ->run ();
282
286
283
287
if (!$ result ->wasSuccessful ()) {
284
- throw new \ Exception ( " Behat tests failed " );
288
+ return $ result -> getExitCode ( );
285
289
}
286
290
}
291
+
292
+ return $ exit_code ;
287
293
}
288
294
289
295
}
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ protected function boot() {
212
212
* @throws \Exception
213
213
*/
214
214
protected function requireDrupalVm () {
215
- $ this ->say ("Adding geerlingguy/drupal-vm: {$ this ->drupalVmVersionConstraint } to composer.json's require-dev array. " );
215
+ $ this ->say ("Adding geerlingguy/drupal-vm: {$ this ->drupalVmVersionConstraint } to composer.json's require-dev array... " );
216
216
$ result = $ this ->taskExec ("composer require --dev geerlingguy/drupal-vm: {$ this ->drupalVmVersionConstraint }" )
217
217
->dir ($ this ->getConfigValue ('repo.root ' ))
218
218
->printOutput (TRUE )
@@ -262,8 +262,8 @@ protected function checkRequirements() {
262
262
* Drupal VM config from box/config.yml.
263
263
*/
264
264
protected function validateConfig ($ config ) {
265
- if (strstr ($ config ['machine_name ' ], '_ ' )) {
266
- $ this ->logger ->warning ("The machine name for your Drupal VM should not contain an underscore. " );
265
+ if (strstr ($ config ['vagrant_machine_name ' ], '_ ' )) {
266
+ $ this ->logger ->warning ("vagrant_machine_namefor should not contain an underscore. " );
267
267
}
268
268
}
269
269
You can’t perform that action at this time.
0 commit comments