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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a12d43f0
Commit
a12d43f0
authored
May 13, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: don't include trailing space in test output
parent
86eeb759
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+2
-2
product/ERP5Type/tests/custom_zodb.py
product/ERP5Type/tests/custom_zodb.py
+4
-4
product/ERP5Type/tests/runUnitTest.py
product/ERP5Type/tests/runUnitTest.py
+1
-1
No files found.
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
a12d43f0
...
@@ -743,7 +743,7 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase, functional.F
...
@@ -743,7 +743,7 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase, functional.F
"""
"""
Shortcut function to log a message
Shortcut function to log a message
"""
"""
ZopeTestCase
.
_print
(
'
\
n
%s
'
%
message
)
ZopeTestCase
.
_print
(
'
\
n
%s'
%
message
)
LOG
(
'Testing ... '
,
DEBUG
,
message
)
LOG
(
'Testing ... '
,
DEBUG
,
message
)
def
publish
(
self
,
path
,
basic
=
None
,
env
=
None
,
extra
=
None
,
def
publish
(
self
,
path
,
basic
=
None
,
env
=
None
,
extra
=
None
,
...
@@ -1320,7 +1320,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
...
@@ -1320,7 +1320,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
# Log out
# Log out
if
not
quiet
:
if
not
quiet
:
ZopeTestCase
.
_print
(
'Logout ...
\
n
'
)
ZopeTestCase
.
_print
(
'Logout ...
\
n
'
)
noSecurityManager
()
noSecurityManager
()
if
not
quiet
:
if
not
quiet
:
ZopeTestCase
.
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
,))
ZopeTestCase
.
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
,))
...
...
product/ERP5Type/tests/custom_zodb.py
View file @
a12d43f0
...
@@ -50,14 +50,14 @@ if load:
...
@@ -50,14 +50,14 @@ if load:
if
save_mysql
:
if
save_mysql
:
if
os
.
path
.
exists
(
dump_sql_path
):
if
os
.
path
.
exists
(
dump_sql_path
):
command
=
"mysql %s < %s"
%
(
getMySQLArguments
(),
dump_sql_path
)
command
=
"mysql %s < %s"
%
(
getMySQLArguments
(),
dump_sql_path
)
_print
(
"Restoring MySQL database with %s ...
"
%
command
)
_print
(
"Restoring MySQL database with %s ..."
%
command
)
_start
=
time
.
time
()
_start
=
time
.
time
()
subprocess
.
check_call
(
command
,
shell
=
True
)
subprocess
.
check_call
(
command
,
shell
=
True
)
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
))
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
))
else
:
else
:
_print
(
"Could not find MySQL dump (%r), will recreate catalog ...
"
%
dump_sql_path
)
_print
(
"Could not find MySQL dump (%r), will recreate catalog ..."
%
dump_sql_path
)
os
.
environ
[
'erp5_tests_recreate_catalog'
]
=
'1'
os
.
environ
[
'erp5_tests_recreate_catalog'
]
=
'1'
_print
(
"Restoring static files ...
"
)
_print
(
"Restoring static files ..."
)
else
:
else
:
if
save
and
not
(
neo_storage
or
zeo_client
)
and
os
.
path
.
exists
(
data_fs_path
):
if
save
and
not
(
neo_storage
or
zeo_client
)
and
os
.
path
.
exists
(
data_fs_path
):
_print
(
"About to remove existing Data.fs %s (press Ctrl+C to abort)"
%
data_fs_path
)
_print
(
"About to remove existing Data.fs %s (press Ctrl+C to abort)"
%
data_fs_path
)
...
@@ -193,4 +193,4 @@ if with_wendelin_core and not in_forked_process:
...
@@ -193,4 +193,4 @@ if with_wendelin_core and not in_forked_process:
wcfs_server
=
wcfs
.
start
(
zurl
)
wcfs_server
=
wcfs
.
start
(
zurl
)
if
node_pid_list
is
not
None
:
if
node_pid_list
is
not
None
:
_print
(
"Instance at %r loaded ...
"
%
instance_home
)
_print
(
"Instance at %r loaded ..."
%
instance_home
)
product/ERP5Type/tests/runUnitTest.py
View file @
a12d43f0
...
@@ -519,7 +519,7 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
...
@@ -519,7 +519,7 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
# testReceiptRecognition for example.
# testReceiptRecognition for example.
os
.
environ
.
setdefault
(
'OMP_NUM_THREADS'
,
'3'
)
os
.
environ
.
setdefault
(
'OMP_NUM_THREADS'
,
'3'
)
_print
(
"Loading Zope ...
\
n
"
)
_print
(
"Loading Zope ...
\
n
"
)
_start
=
time
.
time
()
_start
=
time
.
time
()
import
Testing
import
Testing
...
...
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