Closed (fixed)
Project:
Drush
Component:
Core Commands
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Mar 2011 at 20:21 UTC
Updated:
16 Apr 2011 at 22:31 UTC
Jump to comment: Most recent file
If you are attempting to run test cases against a server where the port is not 80, drupalGet / drupalPost will fail. For example:
$ drush test-run --uri=http://localhost:8888/drupal7/ EnableDisableTestCase --methods=testEnableDisable
I took a look at #580530: Command to run simpletests and there doesn't seem to be anything specifically related to the URI in the commit, so I wonder if this is a deeper problem with the --uri option.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 108002_5_respect_uri_port.patch | 2.6 KB | deviantintegral |
| #3 | 108002_3_respect_uri_port.patch | 1 KB | deviantintegral |
| #2 | 1087002_2_respect_uri_port.patch | 695 bytes | deviantintegral |
Comments
Comment #1
greg.1.anderson commentedHere's the relevant code in environment.inc:
As you can see, the port component from parse_url is not considered. It should be fairly easy to put it in; patches welcome.
Comment #2
deviantintegral commentedThanks for the pointer; saved me digging it out myself.
Here's a patch.
Comment #3
deviantintegral commentedReroll against master.
Comment #4
moshe weitzman commentedCode looks good. Needs documenting somewhere?
Comment #5
deviantintegral commentedThis adds a commit that shows setting the port in the --uri option. I also added the issue number to the commit messages.
Comment #6
moshe weitzman commentedcommitted to master. I rebased these to a single commit. use 77426f79ceae17856b572a7c03ed04e6f4c4f908 for cherry pick to 4.x
Comment #7
msonnabaum commented