diff --git a/tests/main.py b/tests/main.py index dafe129a..9356c52f 100755 --- a/tests/main.py +++ b/tests/main.py @@ -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 + " !") \ No newline at end of file +log("TESTS", "ℹ️", "All tests finished for " + test_type + " !") + +run("docker system prune", shell=True) \ No newline at end of file