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
Léo-Paul Géneau
erp5
Commits
52cd9821
Commit
52cd9821
authored
Apr 02, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testUpgradeInstanceWithOldDataFs: Delete Unit Test instancehome of previous executions.
parent
bb67f407
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/__init__.py
tests/__init__.py
+3
-1
No files found.
tests/__init__.py
View file @
52cd9821
...
@@ -124,9 +124,11 @@ class ERP5(_ERP5):
...
@@ -124,9 +124,11 @@ class ERP5(_ERP5):
instance_home
=
(
self
.
instance
and
'unit_test.%u'
%
self
.
instance
instance_home
=
(
self
.
instance
and
'unit_test.%u'
%
self
.
instance
or
'unit_test'
)
or
'unit_test'
)
os
.
makedirs
(
os
.
path
.
join
(
instance_home
,
'var'
))
import
shutil
import
shutil
shutil
.
rmtree
(
instance_home
,
ignore_errors
=
True
)
os
.
makedirs
(
os
.
path
.
join
(
instance_home
,
'var'
))
shutil
.
copyfile
(
os
.
path
.
join
(
old_data_path
,
'Data.fs'
),
shutil
.
copyfile
(
os
.
path
.
join
(
old_data_path
,
'Data.fs'
),
os
.
path
.
join
(
instance_home
,
'var'
,
'Data.fs'
))
os
.
path
.
join
(
instance_home
,
'var'
,
'Data.fs'
))
shutil
.
copyfile
(
os
.
path
.
join
(
old_data_path
,
'dump.sql'
),
shutil
.
copyfile
(
os
.
path
.
join
(
old_data_path
,
'dump.sql'
),
...
...
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