Skip to content
Snippets Groups Projects
Commit cfe041f4 authored by Drew Webber's avatar Drew Webber Committed by Ryan Aslett (Mixologic)
Browse files

Issue #3173146 by mcdruid: D7 CI failure with SQLite db using WAL

parent 87020248
No related branches found
No related tags found
No related merge requests found
......@@ -130,4 +130,25 @@ class RunTestsD7 extends RunTests {
return $test_groups;
}
/**
* {@inheritdoc}
*/
public function generateJunitXml() {
if ($this->system_database->getDbType() === 'sqlite') {
$db_dir = $this->environment->getExecContainerSourceDir() . '/sites/default/files';
if (!is_writable($db_dir)) {
$this->io->writeln("<comment>Trying to make $db_dir writeable for SQLite</comment>");
$uid = posix_getuid();
$commands = [
'sudo chown -R ' . $uid . ' ' . $db_dir,
'chmod -R 777 ' . $db_dir,
];
$this->execEnvironmentCommands($commands);
}
}
parent::generateJunitXml();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment