Commit ea4cb55b authored by Julien Muchembled's avatar Julien Muchembled

fixup! erp5testnode: clean up old instance root folder

With software release test suites, there are probably
files/folders with permission issues.

See commit 380037f8.
parent 083d1aee
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
############################################################################## ##############################################################################
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
...@@ -34,7 +33,7 @@ import xml_marshaller ...@@ -34,7 +33,7 @@ import xml_marshaller
import argparse import argparse
from slapos import client from slapos import client
from . import logger from . import logger
from .Utils import createFolder from .Utils import createFolder, rmtree
from six.moves import range from six.moves import range
...@@ -279,7 +278,7 @@ class SlapOSControler(object): ...@@ -279,7 +278,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 rmtree(self.old_instance_root) # 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment