Skip to content

Instantly share code, notes, and snippets.

@ElijahLynn
Created November 25, 2013 21:20
Show Gist options
  • Save ElijahLynn/7649109 to your computer and use it in GitHub Desktop.
Save ElijahLynn/7649109 to your computer and use it in GitHub Desktop.
Run Drupal Simpletests from Drush and avoid permission errors by running as www-data (the server) and also preserve environment variables (-E). Preserving environment variables is really only needed when you enable xdebug on the command line.
sudo -E -u www-data drush @pub7.local test-run ActionsConfigurationTestCase --uri=loc.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment