mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
tests - call cleanup-linux.sh
This commit is contained in:
parent
b0fa57b056
commit
d0e3f3ae26
1 changed files with 2 additions and 2 deletions
|
@ -121,12 +121,12 @@ class LinuxTest(Test) :
|
|||
|
||||
def _cleanup_test(self) :
|
||||
try :
|
||||
proc = LinuxTest.docker_exec(self.__distro, "rm -rf /opt/bunkerweb/www/* ; rm -rf /opt/bunkerweb/configs/* ; rm -rf /opt/bunkerweb/plugins/*")
|
||||
proc = LinuxTest.docker_exec(self.__distro, "cd /opt/" + self._name + " ; ./cleanup-linux.sh ; rm -rf /opt/bunkerweb/www/* ; rm -rf /opt/bunkerweb/configs/* ; rm -rf /opt/bunkerweb/plugins/*")
|
||||
if proc.returncode != 0 :
|
||||
raise(Exception("docker exec rm failed (cleanup)"))
|
||||
super()._cleanup_test()
|
||||
except :
|
||||
log("DOCKER", "❌", "exception while running DockerTest._cleanup_test()\n" + format_exc())
|
||||
log("DOCKER", "❌", "exception while running LinuxTest._cleanup_test()\n" + format_exc())
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue