Closed (fixed)
Project:
Drush
Version:
7.x-5.0
Component:
Core Commands
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2012 at 15:26 UTC
Updated:
9 Apr 2012 at 14:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
moshe weitzman commentedWHat version of Drupal are you using? This is working for me in Drupal 7. Might be a good idea to disable any contrib/custom modules that supply tests.
Comment #2
daften commentedLatest stable drupal version (7.12). I am getting errors on all my site.
Sometimes it's the following though:
I am on Mac OS X Lion, maybe there's an issue there.
Comment #3
moshe weitzman commentednow suppressing that error, but you will still need to figure out why your site can't bootstrap properly. probably a rogue contrib module
Comment #4
daften commentedI don't think that's the issue, simply running drush test-run for a site works fine, it's the autocomplete that's the issue.
I've added --complete-debug and this is the output for "drush test-run " (the space is important, completing the command itself works):
I've tried digging into the code, but got a bit lost after a while :s
Comment #5
owen barton commentedThis patch fixes both issues for me - incorrect bootstrap level check (#2), and providing a funky values array back on fail (#4) for me.
Please give it a try and report back! You will probably need to run "drush cc drush" if you have the borked (#4) values cached.
Comment #6
daften commentedJup, no more error message, but the list of tests isn't shown either (which I thought was the expected behavior)
And yes, simpletest is enabled. :)
Comment #7
owen barton commentedOh yeah - minor detail :)
Comment #8
owen barton commentedComment #9
daften commentedYep, that does it. Nice work! (did need to clean drush cache off course)
Comment #10
moshe weitzman commentedcommitted