Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d1c21db4
Commit
d1c21db4
authored
4 years ago
by
Jawayria
Browse files
Options
Downloads
Patches
Plain Diff
Resolved error
parent
69e0dc7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pavelib/utils/test/bokchoy_utils.py
+1
-1
1 addition, 1 deletion
pavelib/utils/test/bokchoy_utils.py
with
1 addition
and
1 deletion
pavelib/utils/test/bokchoy_utils.py
+
1
−
1
View file @
d1c21db4
...
...
@@ -146,7 +146,7 @@ def is_mysql_running():
"""
# We need to check whether or not mysql is running as a process
# even if it is not daemonized.
with
open
(
os
.
devnull
,
'
w
'
)
as
os_devnull
:
# lint-amnesty, pylint: disable=
W6005,
bad-option-value
with
open
(
os
.
devnull
,
'
w
'
)
as
os_devnull
:
# lint-amnesty, pylint: disable=bad-option-value
#pgrep returns the PID, which we send to /dev/null
returncode
=
subprocess
.
call
(
"
pgrep mysqld
"
,
stdout
=
os_devnull
,
shell
=
True
)
return
returncode
==
0
...
...
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