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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

neclimdul’s picture

neclimdul’s picture

derp

alexpott’s picture

herp...

neclimdul’s picture

Status: Needs review » Reviewed & tested by the community

Even better, no failures.

neclimdul’s picture

Status: Reviewed & tested by the community » Needs work

actually... it works in php 5.6 but just ran it in 5.5 and it failed.

1) Warning
The data provider specified for Drupal\Tests\Core\DependencyInjection\Compiler\BackendCompilerPassTest::testProcess is invalid.
You cannot serialize or unserialize PDO instances
alexpott’s picture

Status: Needs work » Needs review
FileSize
971 bytes

I will not be deterred!

neclimdul’s picture

Status: Needs review » Reviewed & tested by the community

now we're good. passes in 5.5 and 5.6!

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

  • catch committed bfa386e on 8.0.x
    Issue #2539310 by neclimdul, alexpott: BackendCompilerPassTest::...
chx’s picture

Odd. How can you not have pdo_sqlite when the test runner script needs --sqlite ?

Berdir’s picture

--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.

chx’s picture

Oh. 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)

neclimdul’s picture

Last 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.