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
Sebastien Robin
erp5
Commits
380037f8
Commit
380037f8
authored
Jun 14, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5testnode: clean up old instance root folder
This is backward compatibility code for previous commit.
parent
fb31fb52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
erp5/util/testnode/SlapOSControler.py
erp5/util/testnode/SlapOSControler.py
+3
-0
No files found.
erp5/util/testnode/SlapOSControler.py
View file @
380037f8
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
##############################################################################
##############################################################################
import
os
import
os
import
pkg_resources
import
pkg_resources
import
shutil
import
slapos.slap
import
slapos.slap
import
subprocess
import
subprocess
import
time
import
time
...
@@ -53,6 +54,7 @@ class SlapOSControler(object):
...
@@ -53,6 +54,7 @@ class SlapOSControler(object):
createFolder
(
shared
)
createFolder
(
shared
)
self
.
shared_part_list
=
self
.
shared_part_list
+
[
shared
]
self
.
shared_part_list
=
self
.
shared_part_list
+
[
shared
]
self
.
old_instance_root
=
os
.
path
.
join
(
working_directory
,
'inst'
)
self
.
instance_root
=
os
.
path
.
join
(
working_directory
,
'i'
)
self
.
instance_root
=
os
.
path
.
join
(
working_directory
,
'i'
)
self
.
slapos_config
=
os
.
path
.
join
(
working_directory
,
'slapos.cfg'
)
self
.
slapos_config
=
os
.
path
.
join
(
working_directory
,
'slapos.cfg'
)
self
.
proxy_database
=
os
.
path
.
join
(
working_directory
,
'proxy.db'
)
self
.
proxy_database
=
os
.
path
.
join
(
working_directory
,
'proxy.db'
)
...
@@ -277,6 +279,7 @@ class SlapOSControler(object):
...
@@ -277,6 +279,7 @@ class SlapOSControler(object):
self
.
_resetSoftware
()
self
.
_resetSoftware
()
else
:
else
:
createFolder
(
self
.
software_root
)
createFolder
(
self
.
software_root
)
shutil
.
rmtree
(
self
.
old_instance_root
,
True
)
# BBB
instance_root
=
self
.
instance_root
instance_root
=
self
.
instance_root
# Delete any existing partition in order to not get its data (ex.
# Delete any existing partition in order to not get its data (ex.
# MySQL DB content) from previous runs. To support changes of partition
# MySQL DB content) from previous runs. To support changes of partition
...
...
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