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
3915d125
Commit
3915d125
authored
7 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Use stable brnach by default (refs
#24053
).
parent
79fd8e0e
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
global-conf.sh
+9
-9
9 additions, 9 deletions
global-conf.sh
launcher.sh
+2
-0
2 additions, 0 deletions
launcher.sh
tester.py
+7
-11
7 additions, 11 deletions
tester.py
update_envsetup.py
+7
-1
7 additions, 1 deletion
update_envsetup.py
with
25 additions
and
21 deletions
global-conf.sh
+
9
−
9
View file @
3915d125
...
...
@@ -4,15 +4,7 @@
# Default configuration values
# ----------------------------
# -- Constants --
CYAN
=
'\033[0;36m'
PURPLE
=
'\033[0;35m'
BLUE
=
'\033[0;34m'
YELLOW
=
'\033[0;32m'
GREEN
=
'\033[0;32m'
RED
=
'\033[0;31m'
NC
=
'\033[0;0m'
ENVSETUP_BRANCH
=
'stable'
# -- System --
# Skyreach in which system looks for packages
...
...
@@ -136,6 +128,14 @@ TESTER_MAX_INSTANCES=
# separate values with commas
TESTER_IGNORED_TESTS
=
# -- Constants --
CYAN
=
'\033[0;36m'
PURPLE
=
'\033[0;35m'
BLUE
=
'\033[0;34m'
YELLOW
=
'\033[0;32m'
GREEN
=
'\033[0;32m'
RED
=
'\033[0;31m'
NC
=
'\033[0;0m'
# Upstream configuration override
# -------------------------------
...
...
This diff is collapsed.
Click to expand it.
launcher.sh
+
2
−
0
View file @
3915d125
...
...
@@ -23,6 +23,8 @@ echo "$version"
# envsetup action calls
init
()
{
python3 /root/envsetup/update_envsetup.py
python3 /root/envsetup/envsetup.py 31
python3 /root/envsetup/envsetup.py 32
python3 /root/envsetup/envsetup.py 33
...
...
This diff is collapsed.
Click to expand it.
tester.py
+
7
−
11
View file @
3915d125
...
...
@@ -230,18 +230,14 @@ class Tester():
log
(
'
Instances that will be tested: %s.
'
%
'
,
'
.
join
(
ms_users
))
# Clone testing suite
ms_path
=
os
.
path
.
join
(
path
,
'
ms-testing-suite
'
)
if
os
.
path
.
exists
(
ms_path
):
log
(
'
Updating ms-testing-suite in
"
%s
"
.
'
%
ms_path
)
os
.
chdir
(
ms_path
)
# TODO:
# subprocess.check_call(['git', 'checkout', 'stable'])
subprocess
.
check_call
([
'
git
'
,
'
pull
'
,
'
--recurse-submodules
'
])
subprocess
.
check_call
([
'
git
'
,
'
submodule
'
,
'
init
'
])
subprocess
.
check_call
([
'
git
'
,
'
submodule
'
,
'
update
'
,
'
--init
'
,
'
--recursive
'
])
os
.
chdir
(
self
.
root_dir
)
else
:
if
not
os
.
path
.
exists
(
ms_path
):
log
(
'
Cloning ms-testing-suite in
"
%s
"
.
'
%
ms_path
)
subprocess
.
check_call
([
'
git
'
,
'
clone
'
,
'
https://panel.ubicast.eu/git/mediaserver/ms-testing-suite.git
'
,
ms_path
])
subprocess
.
check_call
([
'
git
'
,
'
clone
'
,
'
--recursive
'
,
'
https://panel.ubicast.eu/git/mediaserver/ms-testing-suite.git
'
,
ms_path
])
log
(
'
Updating ms-testing-suite in
"
%s
"
.
'
%
ms_path
)
os
.
chdir
(
ms_path
)
subprocess
.
check_call
([
'
git
'
,
'
pull
'
,
'
--recurse-submodules
'
])
subprocess
.
check_call
([
'
git
'
,
'
submodule
'
,
'
update
'
,
'
--init
'
,
'
--recursive
'
])
os
.
chdir
(
self
.
root_dir
)
# Add tests to list
wowza_dir
=
'
/usr/local/WowzaStreamingEngine
'
etc_lives_conf
=
'
/etc/mediaserver/lives_conf.py
'
...
...
This diff is collapsed.
Click to expand it.
update_envsetup.py
+
7
−
1
View file @
3915d125
...
...
@@ -4,12 +4,18 @@ import os
import
subprocess
import
sys
import
utils
if
__name__
==
'
__main__
'
:
branch
=
utils
.
get_conf
(
'
ENVSETUP_BRANCH
'
)
or
'
stable
'
os
.
chdir
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
__file__
))))
sys
.
stdout
.
write
(
'
Updating envsetup:
'
)
sys
.
stdout
.
flush
()
subprocess
.
call
(
'
find . -name *.pyc -type f -delete
'
,
shell
=
True
)
subprocess
.
call
(
'
find . -name __pycache__ -type d -delete
'
,
shell
=
True
)
subprocess
.
call
(
'
git pull
'
,
shell
=
True
)
if
branch
:
subprocess
.
check_call
([
'
git
'
,
'
checkout
'
,
branch
])
subprocess
.
check_call
([
'
git
'
,
'
pull
'
,
'
--recurse-submodules
'
])
subprocess
.
check_call
([
'
git
'
,
'
submodule
'
,
'
update
'
,
'
--init
'
,
'
--recursive
'
])
subprocess
.
call
(
'
find . -type d -empty -delete
'
,
shell
=
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