Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupalci_testbot-3180352
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupalci_testbot-3180352
Commits
cfe041f4
Commit
cfe041f4
authored
4 years ago
by
Drew Webber
Committed by
Ryan Aslett (Mixologic)
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DrupalCI/Plugin/BuildTask/BuildStep/Testing/RunTestsD7.php
+21
-0
21 additions, 0 deletions
...rupalCI/Plugin/BuildTask/BuildStep/Testing/RunTestsD7.php
with
21 additions
and
0 deletions
src/DrupalCI/Plugin/BuildTask/BuildStep/Testing/RunTestsD7.php
+
21
−
0
View file @
cfe041f4
...
...
@@ -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
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment