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
137
Merge Requests
137
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
Jobs
Commits
Open sidebar
nexedi
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
Pipeline
#34512
failed with stage
in 0 seconds
Changes
3
Pipelines
1
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
"""
Shortcut function to log a message
"""
ZopeTestCase
.
_print
(
'
\
n
%s
'
%
message
)
ZopeTestCase
.
_print
(
'
\
n
%s'
%
message
)
LOG
(
'Testing ... '
,
DEBUG
,
message
)
def
publish
(
self
,
path
,
basic
=
None
,
env
=
None
,
extra
=
None
,
...
...
@@ -1320,7 +1320,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
# Log out
if
not
quiet
:
ZopeTestCase
.
_print
(
'Logout ...
\
n
'
)
ZopeTestCase
.
_print
(
'Logout ...
\
n
'
)
noSecurityManager
()
if
not
quiet
:
ZopeTestCase
.
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
,))
...
...
product/ERP5Type/tests/custom_zodb.py
View file @
a12d43f0
...
...
@@ -50,14 +50,14 @@ if load:
if
save_mysql
:
if
os
.
path
.
exists
(
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
()
subprocess
.
check_call
(
command
,
shell
=
True
)
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
))
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'
_print
(
"Restoring static files ...
"
)
_print
(
"Restoring static files ..."
)
else
:
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
)
...
...
@@ -193,4 +193,4 @@ if with_wendelin_core and not in_forked_process:
wcfs_server
=
wcfs
.
start
(
zurl
)
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):
# testReceiptRecognition for example.
os
.
environ
.
setdefault
(
'OMP_NUM_THREADS'
,
'3'
)
_print
(
"Loading Zope ...
\
n
"
)
_print
(
"Loading Zope ...
\
n
"
)
_start
=
time
.
time
()
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