Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
c6fe8d9b
Commit
c6fe8d9b
authored
Feb 20, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make erp5.util.testnode able to resist to problems with slapos proxy
parent
541e19f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
erp5/util/testnode/SlapOSControler.py
erp5/util/testnode/SlapOSControler.py
+14
-9
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+3
-1
No files found.
erp5/util/testnode/SlapOSControler.py
View file @
c6fe8d9b
...
...
@@ -96,6 +96,7 @@ class SlapOSControler(object):
# XXX: dirty, giving some time for proxy to being able to accept
# connections
time
.
sleep
(
10
)
try
:
slap
=
slapos
.
slap
.
slap
()
self
.
slap
=
slap
self
.
slap
.
initializeConnection
(
config
[
'master_url'
])
...
...
@@ -105,6 +106,10 @@ class SlapOSControler(object):
path
,
computer_guid
=
config
[
'computer_id'
])
computer
=
slap
.
registerComputer
(
config
[
'computer_id'
])
except
:
self
.
log
(
"SlapOSControler.initializeSlapOSControler,
\
exception in registerSupply"
,
exc_info
=
sys
.
exc_info
())
raise
ValueError
(
"Unable to initializeSlapOSControler"
)
# Reset all previously generated software if needed
if
reset_software
:
self
.
_resetSoftware
()
...
...
erp5/util/testnode/testnode.py
View file @
c6fe8d9b
...
...
@@ -436,6 +436,7 @@ branch = %(branch)s
try
:
while
True
:
try
:
node_test_suite
=
None
self
.
log
=
self
.
process_manager
.
log
=
self
.
testnode_log
self
.
cleanUp
(
None
)
remote_test_result_needs_cleanup
=
False
...
...
@@ -497,6 +498,7 @@ branch = %(branch)s
except
ValueError
as
e
:
# This could at least happens if runTestSuite is not found
log
(
"ValueError"
,
exc_info
=
sys
.
exc_info
())
if
node_test_suite
is
not
None
:
node_test_suite
.
retry_software_count
+=
1
except
CancellationError
,
e
:
log
(
"CancellationError"
,
exc_info
=
sys
.
exc_info
())
...
...
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