Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
mediaserver
envsetup
Commits
0591596e
Commit
0591596e
authored
3 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Do not check Wowza if disabled
parent
463d6e04
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
tests/scripts/test_wowza.py
+10
-5
10 additions, 5 deletions
tests/scripts/test_wowza.py
with
10 additions
and
5 deletions
tests/scripts/test_wowza.py
+
10
−
5
View file @
0591596e
...
...
@@ -33,7 +33,7 @@ def main():
errors
=
0
# check if wowza is installed
if
not
check_installed
():
if
not
check_installed
_and_enabled
():
exit
(
2
)
# check wowza version
...
...
@@ -72,21 +72,26 @@ def main():
exit
(
0
)
def
check_installed
()
->
bool
:
'''
Check that Wowza is installed.
def
check_installed
_and_enabled
()
->
bool
:
'''
Check that Wowza is installed
and enabled
.
:return: Exit return codes
:rtype: bool
'''
cmd
=
'
dpkg --get-selections
"
wowza*
"'
out
=
subprocess
.
getoutput
(
cmd
)
out
=
subprocess
.
getoutput
(
cmd
)
.
strip
()
state
=
out
.
split
()[
-
1
]
if
state
!=
'
install
'
:
lg
.
info
(
'
not installed, skip test
'
)
return
False
cmd
=
'
systemctl is-enabled WowzaStreamingEngine
'
out
=
subprocess
.
getoutput
(
cmd
).
strip
()
if
not
out
.
endswith
(
'
enabled
'
):
lg
.
info
(
'
not enabled, skip test
'
)
return
False
return
True
...
...
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