tests - replace restart with stop+start for linux tests

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

View File

@ -109,7 +109,7 @@ class LinuxTest(Test) :
proc = LinuxTest.docker_exec(self.__distro, "cp /opt/" + self._name + "/variables.env /opt/bunkerweb")
if proc.returncode != 0 :
raise(Exception("docker exec cp variables.env failed (test)"))
proc = LinuxTest.docker_exec(self.__distro, "systemctl restart bunkerweb")
proc = LinuxTest.docker_exec(self.__distro, "systemctl stop bunkerweb ; systemctl start bunkerweb")
if proc.returncode != 0 :
raise(Exception("docker exec systemctl restart failed (linux stack)"))
except :