Tests under the newest release of MAMP (1.7.2) fail absolutely spectacularly.
For example, the Aggregator group of tests ends up with 132 passes, 131 fails, 36 exceptions.
In contrast, others in #drupal with cURL 7.16.xx had 0 failures.
I traced this with some tedious error_log()ing to the curlExec() function in drupal_web_test_case.php, which doesn't appear to be able to POST values at all. Dumping $this->_content directly after $this->drupalSetContent(curl_exec($this->ch), curl_getinfo($this->ch, CURLINFO_EFFECTIVE_URL)); merely spits back the same form, rather than the page one would expect once the form values were submitted.
Um. Help? Not being able to run tests kind of puts a damper on the whole committing patches thing. ;P
Comment | File | Size | Author |
---|---|---|---|
#3 | somebody.patch | 825 bytes | chx |
#2 | simpletest-fix-curl-errors-308186-2.patch | 1.16 KB | webchick |
Comments
Comment #1
lyricnz CreditAttribution: lyricnz commentedI can confirm this behaviour (MAMP 1.7.2). It looks like it's literally doing GET requests, rather than POST requests. Here's the Apache access_log for aggregator.test:
Whereas it used to look more like this:
Comment #2
webchickAfter several minutes of troubleshooting, chx suggested removing this bit, and suddenly everything works.
Needs to be tested by someone NOT on this screwy version of MAMP. ;)
Comment #3
chx CreditAttribution: chx commentedtested, works. I can not understand what happens really here but works for now.
Comment #4
webchickTo clarify, chx's patch reverts this line back to the way it was before #231190: Page Cache doesn't work with HEAD requests landed.
Comment #5
lyricnz CreditAttribution: lyricnz commentedI've tried this a couple of times to be sure, and the patch in #2 works for me, while the patch in #3 produces the same errors as the unpatched head. Given that, I'll RTBC the patch in comment #2 (webchick)
Comment #6
lyricnz CreditAttribution: lyricnz commentedPatch also works on older version of MAMP (1.7.1)
Comment #7
webchickCommitted. Thanks for awesome debug session, folks! :D
Comment #8
c960657 CreditAttribution: c960657 commentedAfter revision 1.39 of modules/simpletest/drupal_web_test_case.php was checked in, I get 1 failed test in the Tracker module:
Comment #9
c960657 CreditAttribution: c960657 commentedHmm, it looks as if the test just sometimes fails, i.e. it is probably not related to this issue. Please ignore comment #8.
Comment #10
webchickHey, c960657, could you hop into #drupal IRC sometime? The entire test suite is passing okay here, and it's easier for us to debug test failures in real time than over the issue queue.
Comment #11
c960657 CreditAttribution: c960657 commentedI think I found the reason for the failing test: #309951: Tracker test sometimes fails. It is completely unrelated to this issue.
I'll drop by #drupal the next time I experience failing tests :-)
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
lyricnz CreditAttribution: lyricnz commentedAlso applied to D6 at #334278: SimpleTest fails with cURL 7.18.2 and MAMP 1.7.2