Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2009 at 10:11 UTC
Updated:
7 Mar 2015 at 13:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mooffie commented(I meant '--clean', not '--clear'.)
Comment #2
damien tournoud commentedD'oh. Let's escape all the arguments ($concurrency, $test_id, $tests).
Comment #3
carlos8f commentedIt took me a couple hours of debugging to trace my empty test results back to the missing "--url" argument value. The $args['url'] value was "--php", which reset the $_SERVER['HTTP_HOST'] value to an empty string, which failed the drupal_valid_http_host() check, exiting all the child processes with 400 Bad Request responses. Doh indeed!
This patch escapes all shell arguments and contains the documentation tweaks.
Comment #5
carlos8f commentedOK, that failed pretty hard :) spelled 'command' w/ 3 m's. LOL
Comment #6
MichaelCole commented#5: run-tests-escapeshellarg.2.patch queued for re-testing.
Comment #7
das-peter commentedHi there,
I was struggling running the simpletests wit the run-test.sh script.
There are already several known issues. My patch should fix some of them.
Issues:
- Detecting php binary as described here: http://drupal.org/node/331580
I've added a detection method for windows. But I'm sure it wont work for all environments
- Escaping command as described here: http://drupal.org/node/628498 this issue ;)
I've fixed the escaping stuff - even spaces in path's are supported now. Most important part is to start the command with "cmd /C"
Enhancements:
- JUnit output file format - code from here: http://www.computerminds.co.uk/hudson-and-simpletest
I've ported the code to DP7 - and it runs with hudson like a charm :)
Feedback is highly welcome.
So long,
Peter
Comment #9
das-peter commentedRemoved Windows Line-Endings.
Would be awesome if someone can tell me why the heck Eclipse adds these even if everywhere is configured "use linux style line endings" :|
Comment #10
das-peter commentedTrigger testing
Comment #12
das-peter commentedPosted proper patch to: #331580: Make run-tests.sh find PHP on Windows & Linux
Comment #13
thedavidmeister commented@das-peter I don't know why Eclipse adds windows line endings, but my feedback is the patch doesn't apply ;)
I assume I'm OK to close this thread as a duplicate of the one you've posted.