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.
This happens when you don't have pdo_sqlite enabled.
There was 1 failure:
1) Warning
The data provider specified for Drupal\Tests\Core\DependencyInjection\Compiler\BackendCompilerPassTest::testProcess is invalid.
could not find driver
Skip sqlite portion when sqlite is not available.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2539310.6.patch | 971 bytes | alexpott |
#3 | 2539310.3.patch | 932 bytes | alexpott |
#2 | 2539310-2.interdiff.txt | 836 bytes | neclimdul |
#2 | 2539310-2.patch | 1.35 KB | neclimdul |
Comments
Comment #1
neclimdulComment #2
neclimdulderp
Comment #3
alexpottherp...
Comment #4
neclimdulEven better, no failures.
Comment #5
neclimdulactually... it works in php 5.6 but just ran it in 5.5 and it failed.
Comment #6
alexpottI will not be deterred!
Comment #7
neclimdulnow we're good. passes in 5.5 and 5.6!
Comment #8
catchCommitted/pushed to 8.0.x, thanks!
Comment #10
chx CreditAttribution: chx commentedOdd. How can you not have pdo_sqlite when the test runner script needs --sqlite ?
Comment #11
Berdir--sqlite is not required. The test bots use it, but it's not required to run tests locally, that's what this issue was about.
Comment #12
chx CreditAttribution: chx commentedOh. Can we open an issue and make sqlite required? :) I wanted that at least since #332303: bootstrap from sqlite but perhaps even older than that (and no, that issue is not fixed but w/e)
Comment #13
neclimdulLast 3 comments have a bit of a flawed assumption, run-test.sh isn't the only way to run tests. I have CI just running ./core/vendor/bin/phpunit which doesn't require sqlite. All tests requiring sqlite politely skip. This is enough to test the patches to CI all the patches I'm working on and requires orders of magnitude less resources and time.
I would have proposed using skip like similar issues but the failure is actually in the data provider which is just always run so this is a trivial fix to avoid ugly errors.