Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
0
Merge Requests
0
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
Mikolaï Krol
erp5
Commits
b9b2048c
Commit
b9b2048c
authored
Feb 20, 2019
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testnode: avoid to rebuild testnode dependencies (firefox) all the time (fix tests)
parent
85d5fd91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
erp5/tests/testERP5TestNode.py
erp5/tests/testERP5TestNode.py
+6
-2
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+1
-1
No files found.
erp5/tests/testERP5TestNode.py
View file @
b9b2048c
...
...
@@ -720,9 +720,11 @@ shared = true
# TestNode
test_node
=
self
.
getTestNode
()
# Modify class UnitTestRunner(or more after) method
def
patch_prepareSlapOS
(
*
args
,
**
kw
):
return
{
'status_code'
:
0
}
original_prepareSlapOS
=
RunnerClass
.
_prepareSlapOS
original_runTestSuite
=
RunnerClass
.
runTestSuite
RunnerClass
.
_prepareSlapOS
=
doNothing
RunnerClass
.
_prepareSlapOS
=
patch_prepareSlapOS
RunnerClass
.
runTestSuite
=
patch_runTestSuite
SlapOSControler
.
initializeSlapOSControler
=
doNothing
# Inside test_node a runner is created using new UnitTestRunner methods
...
...
@@ -886,7 +888,9 @@ shared = true
else
:
RunnerClass
.
runTestSuite
=
doNothing
RunnerClass
.
_prepareSlapOS
=
doNothing
def
patch_prepareSlapOS
(
*
args
,
**
kw
):
return
{
'status_code'
:
0
}
RunnerClass
.
_prepareSlapOS
=
patch_prepareSlapOS
SlapOSControler
.
initializeSlapOSControler
=
doNothing
test_node
.
run
()
self
.
assertEquals
(
counter
,
3
)
...
...
erp5/util/testnode/testnode.py
View file @
b9b2048c
...
...
@@ -302,8 +302,8 @@ shared = true
runner
=
runner_class
(
self
)
logger
.
info
(
"Type of current test is %s"
,
my_test_type
)
# master testnode gets test_suites, slaves get nothing
testnode_software_status_dict
=
runner
.
prepareSlapOSForTestNode
(
test_node_slapos
)
if
not
(
testnode_software_successfully_built
):
testnode_software_status_dict
=
runner
.
prepareSlapOSForTestNode
(
test_node_slapos
)
if
testnode_software_status_dict
[
'status_code'
]
==
0
:
testnode_software_successfully_built
=
True
logger
.
info
(
"Will now skip build of testnode software"
)
...
...
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