Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
43df2954
Commit
43df2954
authored
Oct 12, 2022
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HARDCODED] LESS TESTS
parent
61af4d9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
master/tests/__init__.py
master/tests/__init__.py
+9
-1
No files found.
master/tests/__init__.py
View file @
43df2954
...
@@ -22,6 +22,9 @@ slapos_bt_list = [
...
@@ -22,6 +22,9 @@ slapos_bt_list = [
'slapos_jio_ui_test'
,
'slapos_jio_ui_test'
,
'slapos_abyss'
'slapos_abyss'
]
]
slapos_bt_list
=
[
'slapos_erp5'
]
class
SlapOSCloud
(
SavedTestSuite
,
ProjectTestSuite
):
class
SlapOSCloud
(
SavedTestSuite
,
ProjectTestSuite
):
_product_list
=
[
'SlapOS'
]
_product_list
=
[
'SlapOS'
]
...
@@ -44,10 +47,15 @@ class SlapOSCloud(SavedTestSuite, ProjectTestSuite):
...
@@ -44,10 +47,15 @@ class SlapOSCloud(SavedTestSuite, ProjectTestSuite):
if
component_re_match
is
not
None
:
if
component_re_match
is
not
None
:
test_case
=
"%s:%s"
%
(
component_re_match
.
group
(
1
),
test_case
=
"%s:%s"
%
(
component_re_match
.
group
(
1
),
component_re_match
.
group
(
2
))
component_re_match
.
group
(
2
))
if
component_re_match
.
group
(
2
)
!=
'testSlapOSERP5VirtualMasterScenario'
:
continue
else
:
else
:
test_case
=
test_path
.
split
(
os
.
sep
)[
-
1
][:
-
3
]
# remove .py
test_case
=
test_path
.
split
(
os
.
sep
)[
-
1
][:
-
3
]
# remove .py
# Filter bt tests to run from _bt_list list
# Filter bt tests to run from _bt_list list
if
test_path
.
split
(
os
.
sep
)[
-
2
]
!=
'tests'
:
if
test_path
.
split
(
os
.
sep
)[
-
2
]
==
'tests'
:
# Skip product tests for now
continue
else
:
if
test_path
.
split
(
os
.
sep
)[
-
2
]
==
'portal_components'
:
if
test_path
.
split
(
os
.
sep
)[
-
2
]
==
'portal_components'
:
product
=
test_path
.
split
(
os
.
sep
)[
-
4
]
product
=
test_path
.
split
(
os
.
sep
)[
-
4
]
else
:
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment