Commit c3aaf216 authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Use correct sudo construct to modify /etc/hosts in behat.init

parent fb18bbbd
......@@ -24,7 +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 " {}" >> /etc/hosts'.format(host))
h.fab_run(role, 'echo " {}" | sudo tee -a /etc/hosts'.format(host))
print green('Behat is now properly configured. The configuration file is {}/tests/behat/behat.yml'.format(workspace))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment