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.
XML writing is being used by the Drupalci project. It's currently broken :(
Running run-tests.sh with the following options --xml ~/xml --class 'Drupal\hal\Tests\DenormalizeTest'
results in the following failure:
PHP Warning: file_put_contents(/Users/alex/al.xml/Drupal\hal\Tests\DenormalizeTest.xml): failed to open stream: No such file or directory in /Volumes/devdisk/dev/sites/drupal8alt.dev/core/scripts/run-tests.sh on line 1006
Comment | File | Size | Author |
---|---|---|---|
#2 | 2465611.1.patch | 1.24 KB | alexpott |
Comments
Comment #1
alexpottComment #2
alexpottComment #3
amateescu CreditAttribution: amateescu commentedAssuming that DrupalCI doesn't need to map the file name back to a class name (i.e. it just loads all the xml files for a test run), the fix looks good to me.
Comment #4
webchickCommitted and pushed to 8.0.x. Thanks!
Comment #6
BerdirFYI: I guess this only actually failed on osx, it didn't have a problem to create those files on linux. But the file names were annoying there as well and various tools then didn't work, so the fix makes sense.
Comment #7
alexpottReally? That's bit weird because I was inside a ubuntu vm when I got these errors.
Comment #8
BerdirNo idea, but I've been using --xml for http://d8ms.worldempire.ch/ and it worked for me. But I wanted to suggest this as a change anyway, so totally +1. Also,
/Users/alex/al.xml
Comment #9
alexpottre #8 and
/Users/alex/al.xml
- yeah that was when I didn't point--xml
to a directory.There were more problems with the drupalci --xml option - fixed in https://github.com/drupalci/drupalci_testbot/pull/6
Comment #10
alexpottThe PR turned out to be the wrong way to contribute - see #2465435-10: Various errors encountered when trying to get things up and running