Skip to content

Commit 63b21d2

Browse files
author
David Ferlay
authored
Merge pull request #262 from skilld-labs/fix_behat_afterscript
Check if chrome container exists before attempting to stop it.
2 parents f15fc4d + 3080232 commit 63b21d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@
160160
"Errors when using with modules that alter a section's contextual menu": "https://www.drupal.org/files/issues/2020-05-22/3106939-4.patch",
161161
"Indicate Drupal 8/9 compatibility via core_version_requirement": "https://www.drupal.org/files/issues/2020-05-22/d9_compatibility-3138698-4.patch"
162162
},
163-
"drupal/manage_display": {
164-
"Drupal 9 compatibility": "https://www.drupal.org/files/issues/2020-04-01/manage_display.d9.3124061-2.patch"
165-
},
166163
"drupal/menu_link_attributes": {
167164
"Add missing schema for menu_link_attributes": "https://patch-diff.githubusercontent.com/raw/yannickoo/menu_link_attributes/pull/52.patch"
168165
},

scripts/makefile/tests.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ browser_driver:
166166

167167
## Stop browser driver
168168
browser_driver_stop:
169-
docker stop $(COMPOSE_PROJECT_NAME)_chrome
169+
if [ ! -z `docker ps -f 'name=$(COMPOSE_PROJECT_NAME)_chrome' --format '{{.Names}}'` ]; then \
170+
echo 'Stopping browser driver.'; \
171+
docker stop $(COMPOSE_PROJECT_NAME)_chrome; \
172+
fi
170173

171174
## Create a high number of random content
172175
contentgen:

0 commit comments

Comments
 (0)