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 @@
##############################################################################
import os
import pkg_resources
import shutil
import slapos.slap
import subprocess
import time
......@@ -34,7 +33,7 @@ import xml_marshaller
import argparse
from slapos import client
from . import logger
from .Utils import createFolder
from .Utils import createFolder, rmtree
from six.moves import range
......@@ -279,7 +278,7 @@ class SlapOSControler(object):
self._resetSoftware()
else:
createFolder(self.software_root)
shutil.rmtree(self.old_instance_root, True) # BBB
rmtree(self.old_instance_root) # BBB
instance_root = self.instance_root
# Delete any existing partition in order to not get its data (ex.
# 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