Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
7930ae51
Commit
7930ae51
authored
Dec 06, 2016
by
Philippe Mouchel
Browse files
Merge branch '2.x-feature/fix-behat' into '2.x'
Fix behat tests initialization See merge request
!38
parents
ba24f08c
36cac53b
Pipeline
#1739
passed with stages
in 1 minute and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
behat.py
View file @
7930ae51
...
...
@@ -24,6 +24,7 @@ def init(rewrite=True):
h
.
fab_run
(
role
,
'cp example.behat.yml behat.yml'
)
h
.
fab_run
(
role
,
'sed -i "s@%DRUPAL_ROOT@{}@g" behat.yml'
.
format
(
site_root
))
h
.
fab_run
(
role
,
'sed -i "s@%URL@http://{}@g" behat.yml'
.
format
(
host
))
h
.
fab_run
(
role
,
'echo "127.0.0.1 {}" | sudo tee -a /etc/hosts'
.
format
(
host
))
print
green
(
'Behat is now properly configured. The configuration file is {}/tests/behat/behat.yml'
.
format
(
workspace
))
else
:
...
...
helpers.py
View file @
7930ae51
...
...
@@ -97,7 +97,8 @@ def fab_exists(role, directory):
if
role
==
"local"
:
return
path
.
exists
(
directory
)
else
:
return
exists
(
directory
)
with
settings
(
key_filename
=
fab_ssh_key
()):
return
exists
(
directory
)
def
fab_add_to_hosts
(
ip
,
site_hostname
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment