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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
eca133a9
Commit
eca133a9
authored
Aug 24, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ease debugging
Use absolute path, and display useful log when sql dump is not found
parent
32852c94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/tests/custom_zodb.py
product/ERP5Type/tests/custom_zodb.py
+2
-2
No files found.
product/ERP5Type/tests/custom_zodb.py
View file @
eca133a9
...
@@ -43,7 +43,7 @@ if save_mysql:
...
@@ -43,7 +43,7 @@ if save_mysql:
# The output of mysqldump needs to merge many lines at a time
# The output of mysqldump needs to merge many lines at a time
# for performance reasons (merging lines is at most 10 times
# for performance reasons (merging lines is at most 10 times
# faster, so this produce somewhat not nice to read sql
# faster, so this produce somewhat not nice to read sql
command
=
'mysqldump %s >
dump.sql'
%
getMySQLArguments
(
)
command
=
'mysqldump %s >
%s'
%
(
getMySQLArguments
(),
os
.
path
.
abspath
(
'dump.sql'
),
)
if
verbosity
:
if
verbosity
:
_print
(
'Dumping MySQL database with %s...'
%
command
)
_print
(
'Dumping MySQL database with %s...'
%
command
)
os
.
system
(
command
)
os
.
system
(
command
)
...
@@ -64,7 +64,7 @@ if load:
...
@@ -64,7 +64,7 @@ if load:
ret
=
os
.
system
(
"mysql %s < %s"
%
(
getMySQLArguments
(),
dump_sql
))
ret
=
os
.
system
(
"mysql %s < %s"
%
(
getMySQLArguments
(),
dump_sql
))
assert
not
ret
assert
not
ret
else
:
else
:
_print
(
"Could not find MySQL dump
, will recreate catalog ... "
)
_print
(
"Could not find MySQL dump
(%r), will recreate catalog ... "
%
dump_sql
)
os
.
environ
[
'erp5_tests_recreate_catalog'
]
=
'1'
os
.
environ
[
'erp5_tests_recreate_catalog'
]
=
'1'
_print
(
"Restoring static files ... "
)
_print
(
"Restoring static files ... "
)
live_instance_path
=
os
.
environ
.
get
(
'live_instance_path'
)
live_instance_path
=
os
.
environ
.
get
(
'live_instance_path'
)
...
...
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