Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
d2e76343
Commit
d2e76343
authored
May 11, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DeployTestSuite ?
parent
f082ad99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
software/erp5testnode/testsuite/deploy-test/runTestSuite.py
software/erp5testnode/testsuite/deploy-test/runTestSuite.py
+15
-13
No files found.
software/erp5testnode/testsuite/deploy-test/runTestSuite.py
View file @
d2e76343
...
...
@@ -152,8 +152,20 @@ def main():
revision
=
args
.
revision
test_suite_title
=
args
.
test_suite_title
or
args
.
test_suite
# TODO: rewrite this unsing nxdtest, EggTestSuite no longer exist in erp5.util
suite
=
testsuite
.
EggTestSuite
(
class
DeployTestSuite
(
testsuite
.
TestSuite
)
def
run
(
self
,
test
):
# Create the site
status_dict
=
waitForSite
(
args
.
partition_path
)
status_file
=
tempfile
.
NamedTemporaryFile
()
status_file
.
write
(
json
.
dumps
(
status_dict
))
status_file
.
flush
()
os
.
fsync
(
status_file
.
fileno
())
os
.
environ
[
'TEST_SITE_STATUS_JSON'
]
=
status_file
.
name
return
status_dict
suite
=
DeployTestSuite
(
1
,
test_suite
=
args
.
test_suite
,
node_quantity
=
args
.
node_quantity
,
python_interpreter
=
args
.
python_interpreter
,
shared_part_list
=
os
.
environ
.
get
(
'SLAPOS_TEST_SHARED_PART_LIST'
,
''
),
...
...
@@ -178,21 +190,11 @@ def main():
if
test_result
is
None
:
return
# Create the site
status_dict
=
waitForSite
(
args
.
partition_path
)
status_file
=
tempfile
.
NamedTemporaryFile
()
status_file
.
write
(
json
.
dumps
(
status_dict
))
status_file
.
flush
()
os
.
fsync
(
status_file
.
fileno
())
os
.
environ
[
'TEST_SITE_STATUS_JSON'
]
=
status_file
.
name
assert
revision
==
test_result
.
revision
,
(
revision
,
test_result
.
revision
)
while
suite
.
acquire
():
test
=
test_result
.
start
(
suite
.
running
.
keys
())
if
test
is
not
None
:
suite
.
start
(
test
.
name
,
lambda
status_dict
,
__test
=
test
:
__test
.
stop
(
**
status_dict
))
suite
.
start
(
test
.
name
)
elif
not
suite
.
running
:
break
return
...
...
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