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
alecs_myu
erp5
Commits
60637f98
Commit
60637f98
authored
Jul 10, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testnode: Change testnodeUtils.py to Utils.py
parent
26ffef69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+2
-2
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+2
-2
erp5/util/testnode/Utils.py
erp5/util/testnode/Utils.py
+0
-0
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+2
-2
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
60637f98
...
@@ -13,7 +13,7 @@ import logging.handlers
...
@@ -13,7 +13,7 @@ import logging.handlers
from
erp5.util.benchmark.argument
import
ArgumentType
from
erp5.util.benchmark.argument
import
ArgumentType
from
erp5.util.benchmark.performance_tester
import
PerformanceTester
from
erp5.util.benchmark.performance_tester
import
PerformanceTester
from
erp5.util
import
taskdistribution
from
erp5.util
import
taskdistribution
from
erp5.util.testnode
import
testnode
Utils
from
erp5.util.testnode
import
Utils
from
subprocess
import
call
from
subprocess
import
call
...
@@ -120,7 +120,7 @@ class ScalabilityLauncher(object):
...
@@ -120,7 +120,7 @@ class ScalabilityLauncher(object):
data
=
self
.
test_result
.
getNextTestCase
()
data
=
self
.
test_result
.
getNextTestCase
()
if
data
==
None
:
if
data
==
None
:
return
None
return
None
decoded_data
=
testnode
Utils
.
deunicodeData
(
json
.
loads
(
decoded_data
=
Utils
.
deunicodeData
(
json
.
loads
(
data
data
))
))
next_test
=
ScalabilityTest
(
decoded_data
,
self
.
test_result
)
next_test
=
ScalabilityTest
(
decoded_data
,
self
.
test_result
)
...
...
erp5/util/testnode/ScalabilityTestRunner.py
View file @
60637f98
...
@@ -37,7 +37,7 @@ import shutil
...
@@ -37,7 +37,7 @@ import shutil
import
logging
import
logging
import
string
import
string
import
random
import
random
import
testnode
Utils
import
Utils
from
ProcessManager
import
SubprocessError
,
ProcessManager
,
CancellationError
from
ProcessManager
import
SubprocessError
,
ProcessManager
,
CancellationError
from
subprocess
import
CalledProcessError
from
subprocess
import
CalledProcessError
from
Updater
import
Updater
from
Updater
import
Updater
...
@@ -213,7 +213,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
...
@@ -213,7 +213,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
if
self
.
testnode
.
test_suite_portal
.
isMasterTestnode
(
if
self
.
testnode
.
test_suite_portal
.
isMasterTestnode
(
self
.
testnode
.
config
[
'test_node_title'
]):
self
.
testnode
.
config
[
'test_node_title'
]):
# Get from ERP5 Master the configuration of the cluster for the test
# Get from ERP5 Master the configuration of the cluster for the test
test_configuration
=
testnode
Utils
.
deunicodeData
(
test_configuration
=
Utils
.
deunicodeData
(
json
.
loads
(
self
.
testnode
.
test_suite_portal
.
generateConfiguration
(
json
.
loads
(
self
.
testnode
.
test_suite_portal
.
generateConfiguration
(
node_test_suite
.
test_suite_title
)
node_test_suite
.
test_suite_title
)
)
)
...
...
erp5/util/testnode/
testnode
Utils.py
→
erp5/util/testnode/Utils.py
View file @
60637f98
File moved
erp5/util/testnode/testnode.py
View file @
60637f98
...
@@ -37,7 +37,7 @@ import shutil
...
@@ -37,7 +37,7 @@ import shutil
import
logging
import
logging
import
string
import
string
import
random
import
random
import
testnode
Utils
import
Utils
import
traceback
import
traceback
...
@@ -312,7 +312,7 @@ branch = %(branch)s
...
@@ -312,7 +312,7 @@ branch = %(branch)s
self
.
test_suite_portal
=
taskdistribution
.
TaskDistributor
(
portal_url
,
logger
=
DummyLogger
(
log
))
self
.
test_suite_portal
=
taskdistribution
.
TaskDistributor
(
portal_url
,
logger
=
DummyLogger
(
log
))
self
.
test_suite_portal
.
subscribeNode
(
config
[
'test_node_title'
],
config
[
'computer_id'
])
self
.
test_suite_portal
.
subscribeNode
(
config
[
'test_node_title'
],
config
[
'computer_id'
])
test_suite_json
=
self
.
test_suite_portal
.
startTestSuite
(
config
[
'test_node_title'
])
test_suite_json
=
self
.
test_suite_portal
.
startTestSuite
(
config
[
'test_node_title'
])
test_suite_data
=
testnode
Utils
.
deunicodeData
(
json
.
loads
(
test_suite_json
))
test_suite_data
=
Utils
.
deunicodeData
(
json
.
loads
(
test_suite_json
))
log
(
"Got following test suite data from master : %r"
%
\
log
(
"Got following test suite data from master : %r"
%
\
(
test_suite_data
,))
(
test_suite_data
,))
# TODO : implement this method for each distributor
# TODO : implement this method for each distributor
...
...
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