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
Titouan Soulard
erp5
Commits
f9b08acc
Commit
f9b08acc
authored
Jun 11, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo (definitively : my_test_type)
parent
366b0144
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
68 deletions
+68
-68
erp5/tests/testERP5TestNode.py
erp5/tests/testERP5TestNode.py
+62
-62
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+6
-6
No files found.
erp5/tests/testERP5TestNode.py
View file @
f9b08acc
This diff is collapsed.
Click to expand it.
erp5/util/testnode/testnode.py
View file @
f9b08acc
...
@@ -342,25 +342,25 @@ branch = %(branch)s
...
@@ -342,25 +342,25 @@ branch = %(branch)s
# into nexedi/master-erp5..
# into nexedi/master-erp5..
# (just UnitTestDistributor should be sufficient)
# (just UnitTestDistributor should be sufficient)
try
:
try
:
my_t
ype_test
=
test_suite_portal
.
getTestType
()
my_t
est_type
=
test_suite_portal
.
getTestType
()
except
:
except
:
log
(
"testnode, error during requesting getTestType() method
\
log
(
"testnode, error during requesting getTestType() method
\
from the distributor."
)
from the distributor."
)
raise
NotImplementedError
raise
NotImplementedError
# Select runner according to the test type
# Select runner according to the test type
if
my_t
ype_test
==
'UnitTest'
:
if
my_t
est_type
==
'UnitTest'
:
runner
=
UnitTestRunner
(
self
)
runner
=
UnitTestRunner
(
self
)
elif
my_t
ype_test
==
'ScalabilityTest'
:
elif
my_t
est_type
==
'ScalabilityTest'
:
runner
=
ScalabilityTestRunner
(
self
)
runner
=
ScalabilityTestRunner
(
self
)
else
:
else
:
log
(
"testnode, Runner type not implemented."
,
my_t
ype_test
)
log
(
"testnode, Runner type not implemented."
,
my_t
est_type
)
raise
NotImplementedError
raise
NotImplementedError
log
(
"Type of current test is %s"
%
(
my_t
ype_test
,))
log
(
"Type of current test is %s"
%
(
my_t
est_type
,))
# master gets test_suites, slaves get nothing
# master gets test_suites, slaves get nothing
if
(
len
(
test_suite_data
)
>
1
)
or
(
my_t
ype_test
==
'UnitTest'
):
if
(
len
(
test_suite_data
)
>
1
)
or
(
my_t
est_type
==
'UnitTest'
):
runner
.
prepareSlapOSForTestNode
(
test_node_slapos
)
runner
.
prepareSlapOSForTestNode
(
test_node_slapos
)
#Clean-up test suites
#Clean-up test suites
self
.
checkOldTestSuite
(
test_suite_data
)
self
.
checkOldTestSuite
(
test_suite_data
)
...
...
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