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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
81f4553a
Commit
81f4553a
authored
Jun 20, 2013
by
Benjamin Blanc
Committed by
Sebastien Robin
Jun 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bt5_path into ERP5TypeTestCase.py and ERP5TypeTestSuite.py
parent
b111682f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+8
-0
product/ERP5Type/tests/ERP5TypeTestSuite.py
product/ERP5Type/tests/ERP5TypeTestSuite.py
+2
-0
No files found.
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
81f4553a
...
@@ -226,6 +226,13 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
...
@@ -226,6 +226,13 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
ZopeTestCase
.
_print
(
'All tests are skipped when --save option is passed '
ZopeTestCase
.
_print
(
'All tests are skipped when --save option is passed '
'with --update_business_templates or without --load'
)
'with --update_business_templates or without --load'
)
def
shortDescription
(
self
):
description
=
str
(
self
)
doc
=
self
.
_testMethodDoc
if
doc
and
doc
.
split
(
"
\
n
"
)[
0
].
strip
():
description
+=
', '
+
doc
.
split
(
"
\
n
"
)[
0
].
strip
()
return
description
def
getRevision
(
self
):
def
getRevision
(
self
):
erp5_path
=
os
.
path
.
join
(
instancehome
,
'Products'
,
'ERP5'
)
erp5_path
=
os
.
path
.
join
(
instancehome
,
'Products'
,
'ERP5'
)
try
:
try
:
...
@@ -726,6 +733,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
...
@@ -726,6 +733,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
bt5_path
=
os
.
environ
.
get
(
'erp5_tests_bt5_path'
)
bt5_path
=
os
.
environ
.
get
(
'erp5_tests_bt5_path'
)
if
bt5_path
:
if
bt5_path
:
bt5_path_list
=
bt5_path
.
split
(
','
)
bt5_path_list
=
bt5_path
.
split
(
','
)
bt5_path_list
+=
[
os
.
path
.
join
(
path
,
"*"
)
for
path
in
bt5_path_list
]
else
:
else
:
bt5_path
=
os
.
path
.
join
(
instancehome
,
'bt5'
)
bt5_path
=
os
.
path
.
join
(
instancehome
,
'bt5'
)
bt5_path_list
=
bt5_path
,
os
.
path
.
join
(
bt5_path
,
'*'
)
bt5_path_list
=
bt5_path
,
os
.
path
.
join
(
bt5_path
,
'*'
)
...
...
product/ERP5Type/tests/ERP5TypeTestSuite.py
View file @
81f4553a
...
@@ -21,6 +21,8 @@ class ERP5TypeTestSuite(TestSuite):
...
@@ -21,6 +21,8 @@ class ERP5TypeTestSuite(TestSuite):
def runUnitTest(self, *args, **kw):
def runUnitTest(self, *args, **kw):
if self.instance:
if self.instance:
args = ('--instance_home=unit_test.%u' % self.instance,) + args
args = ('--instance_home=unit_test.%u' % self.instance,) + args
if self.__dict__.has_key("
bt5_path
"):
args = ("
--
bt5_path
=%
s
" % self.bt5_path,) + args
instance_number = self.instance or 1
instance_number = self.instance or 1
mysql_db_list = self.mysql_db_list[
mysql_db_list = self.mysql_db_list[
(instance_number-1) * self.mysql_db_count:
(instance_number-1) * self.mysql_db_count:
...
...
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