Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I run run-tests.sh as follows
scripts/run-tests.sh --url http://d6test10.localhost:8888 --list
I get a "Notice: Undefined index: path in ..." error and output buffering whining.
Reason: url_parse('http://d6test10.localhost:8888')
does not contain a 'path' entry, because there is no trailing '/' in the url.
Using 'http://d6test10.localhost:8888/' (with a trailing '/') does work however.
in attachment a tiny little patch that makes it possible to forget the trailing '/'
Comment | File | Size | Author |
---|---|---|---|
url_without_path.patch | 772 bytes | soxofaan | |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedI would rather throw an error in that case. Anyway, this has to be fixed in D7, then backported.
Comment #2
soxofaan CreditAttribution: soxofaan commentedWhat's wrong with "http://example.com"? According to the URL RFC (admittedly, I only took a quick glance), it is a valid url.
Comment #3
Damien Tournoud CreditAttribution: Damien Tournoud commentedThat would be consistent with, for example, what "ab" does. The RFCs are not very trust-worthy, because URLs are strange beast: even the schema part is optional (ie. //example.com/path *is* a valid URL).
Comment #4
lefnire CreditAttribution: lefnire commentedMayhap, if they forget the trailing slash -- add it in (ala patch) & give them a warning? I forsee a common situation:
1)
$ php script/run-tests.sh --all --url http://localhost
2) Error. Disgruntled dev hits
[up-arrow] / [enter]
3) Process becomes muscle-memory