ci/cd - add docker system prune

This commit is contained in:
bunkerity 2022-08-25 16:57:17 +02:00
parent 72caf907a0
commit 8f44e108bb
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,7 @@ from os import getcwd, _exit
from os.path import isfile
from traceback import format_exc
from json import loads
from subprocess import run
path.append(getcwd() + "/utils")
path.append(getcwd() + "/tests")
@ -26,6 +27,8 @@ if not test_type in ["linux", "docker", "autoconf", "swarm", "kubernetes", "ansi
log("TESTS", "", "Wrong type argument " + test_type)
exit(1)
run("docker system prune", shell=True)
log("TESTS", "", "Starting tests for " + test_type + " ...")
ret = False
end_fun = None
@ -97,4 +100,6 @@ if not ret :
log("TESTS", "", "Test.end() failed")
exit(1)
log("TESTS", "", "All tests finished for " + test_type + " !")
log("TESTS", "", "All tests finished for " + test_type + " !")
run("docker system prune", shell=True)