Commit 7930ae51 authored by Philippe Mouchel's avatar 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
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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:
+2 −1
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ def fab_exists(role, directory):
    if role == "local":
        return path.exists(directory)
    else:
        with settings(key_filename=fab_ssh_key()):
            return exists(directory)