This commit is contained in:
Egor Matveev 2022-03-26 17:06:25 +03:00
parent f040151b68
commit 48a0305c10

View File

@ -160,8 +160,11 @@ class BaseTester:
self.solution.result = "TE" self.solution.result = "TE"
raise e raise e
self.solution.save() self.solution.save()
call(f"docker rm --force solution_{self.solution.id}", shell=True) self.call(f"docker rm --force solution_{self.solution.id}")
call(f"docker rm --force solution_{self.solution.id}_checker", shell=True) self.call(f"docker rm --force solution_{self.solution.id}_checker")
for file in dockerfiles:
self.call(f"docker rm --force solution_container_{self.solution.id}_{file.filename}")
self.call(f"docker image rm solution_image_{self.solution.id}_{file.filename}")
self.solution.user.userinfo.refresh_from_db() self.solution.user.userinfo.refresh_from_db()
notify( notify(
self.solution.user, self.solution.user,