tests - call cleanup-linux.sh

This commit is contained in:
bunkerity 2022-08-17 15:01:18 +02:00
parent b0fa57b056
commit d0e3f3ae26
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 2 additions and 2 deletions

View File

@ -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