diff options
Diffstat (limited to 'plugins/agl_test_utils.py')
-rw-r--r-- | plugins/agl_test_utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/agl_test_utils.py b/plugins/agl_test_utils.py index b1204a0..e2799f1 100644 --- a/plugins/agl_test_utils.py +++ b/plugins/agl_test_utils.py @@ -1,3 +1,5 @@ +import os +import shutil import subprocess from plugins.agl_test_conf import REPORT_LOGS_DIR @@ -29,3 +31,10 @@ def printe(msg): def printd(msg): # TODO print("==== DEBUG: " + msg) + +# delete entire temp log folder +def rm_all_tmp(): + env_dist=os.environ + mode = str(env_dist.get("LOG_MODE")) + if mode == "clear": + shutil.rmtree(TMP_LOGS_DIR) |