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
b4f5ad73
Commit
b4f5ad73
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Added a conf to ingore test (refs
#20800
).
parent
d0baf177
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
global-conf.sh
+2
-0
2 additions, 0 deletions
global-conf.sh
tester.py
+5
-0
5 additions, 0 deletions
tester.py
tests/test_backup.py
+0
-3
0 additions, 3 deletions
tests/test_backup.py
with
7 additions
and
3 deletions
global-conf.sh
+
2
−
0
View file @
b4f5ad73
...
...
@@ -115,6 +115,8 @@ HA_LB2_IP=
TESTER_MS_INSTANCES
=
# TESTER_MAX_INSTANCES is ignored if TESTER_MS_INSTANCES is set
TESTER_MAX_INSTANCES
=
# separate values with commas
TESTER_IGNORED_TESTS
=
# Upstream configuration override
...
...
This diff is collapsed.
Click to expand it.
tester.py
+
5
−
0
View file @
b4f5ad73
...
...
@@ -122,6 +122,7 @@ class Tester():
return
criticality
,
description
def
discover_tests
(
self
,
basic_only
=
False
):
ignored_tests
=
utils
.
get_conf
(
'
TESTER_IGNORED_TESTS
'
,
''
).
split
(
'
,
'
)
tests
=
list
()
# Get standard tests
path
=
os
.
path
.
join
(
self
.
root_dir
,
'
tests
'
)
...
...
@@ -134,6 +135,8 @@ class Tester():
log
(
'
The tests dir is empty (
"
%s
"
).
'
%
path
)
return
tests
for
name
in
names
:
if
name
in
ignored_tests
:
continue
test_path
=
os
.
path
.
join
(
path
,
name
)
if
os
.
path
.
isfile
(
test_path
):
criticality
,
description
=
self
.
parse_file_header
(
test_path
)
...
...
@@ -191,6 +194,8 @@ class Tester():
ms_tests
.
append
(
'
test_wowza_secure.py
'
)
ms_tests
.
append
(
'
ms_live_tester.py
'
)
for
name
in
ms_tests
:
if
name
in
ignored_tests
:
continue
test_path
=
os
.
path
.
join
(
ms_path
,
name
)
criticality
,
description
=
self
.
parse_file_header
(
test_path
)
tests
.
append
((
'
%s (%s)
'
%
(
name
,
user
),
criticality
,
description
,
[
test_path
,
user
]))
...
...
This diff is collapsed.
Click to expand it.
tests/test_backup.py
+
0
−
3
View file @
b4f5ad73
...
...
@@ -52,9 +52,6 @@ os.chdir(os.path.dirname(__file__))
if
os
.
path
.
isfile
(
'
../utils.py
'
):
es_utils
=
imp
.
load_source
(
'
es_utils
'
,
'
../utils.py
'
)
conf
=
es_utils
.
load_conf
()
if
conf
.
get
(
'
BURP_NO_TEST
'
):
print
(
'
BURP_NO_TEST is set in config, test skipped
'
)
sys
.
exit
(
2
)
BURP_SERVER
=
conf
.
get
(
'
BURP_SERVER
'
)
BURP_CLIENT_NAME
=
conf
.
get
(
'
BURP_CLIENT_NAME
'
)
or
'
localhost
'
if
BURP_SERVER
:
...
...
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